Interface
APIUserPartial
Partial user object returned by the API (messages, members, webhooks, etc.).
Properties
avatar
: string | nullAvatar hash.
avatar_color
: number | nullRGB color as integer (e.g. 7577782) for profile decoration.
bot
?: booleanWhether this is a bot account.
discriminator
: stringDiscriminator (4-digit tag).
flags
: numberPublicUserFlags bitfield (public bits); private bits may also be set.
global_name
: string | nullDisplay name.
id
: SnowflakeUser ID.
mention_flags
?: numberAccount-wide reply mention preference.
system
?: booleanWhether this is an official system user.
username
: stringUsername.
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.