Interface

APIUserPartial

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

Properties

NameTypeDescription
avatarstring | nullAvatar hash.
avatar_colornumber | nullRGB color as integer (e.g. 7577782) for profile decoration.
bot?booleanWhether this is a bot account.
discriminatorstringDiscriminator (4-digit tag).
flagsnumberPublicUserFlags bitfield (public bits); private bits may also be set.
global_namestring | nullDisplay name.
idSnowflakeUser ID.
mention_flags?numberAccount-wide reply mention preference.
system?booleanWhether this is an official system user.
usernamestringUsername.

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.