Interface
APIUserPartial
Partial user object returned by the API (messages, members, webhooks, etc.).
Properties
| Name | Type | Description |
|---|---|---|
| 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 | PublicUserFlags bitfield (public bits); private bits may also be set. |
| global_name | string | null | Display name. |
| id | Snowflake | User ID. |
| mention_flags? | number | Account-wide reply mention preference. |
| 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.