Interface

APIUserPartial

Partial user object returned by the API (messages, members, webhooks, etc.).

Properties

avatar?: string | null

Avatar hash.

avatar_color?: number | null

RGB color as integer (e.g. 7577782) for profile decoration.

bot?: boolean

Whether this is a bot account.

discriminator: string

Discriminator (4-digit tag).

flags?: number | null

PublicUserFlags bitfield (public bits); private bits may also be set.

global_name?: string | null

Display name.

User ID.

system?: boolean

Whether this is an official system user.

username: string

Username.

See also

  • GET /users/{id} - Returns id, username, discriminator, global_name, avatar, avatar_color, flags
  • GET /users/@me - Returns full user with bot, email, premium fields, etc.