Skip to content

APIUserPartial

Package: @erinjs/types

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

Properties

NameTypeReadonlyOptionalDescription
avatarstring | nullNoYes
avatar_colornumber | nullNoYesRGB color as number (e.g. 7577782)
bannerstring | nullNoYesUser banner hash (from profile, member, or invite context)
botbooleanNoYesPresent when author is a bot
discriminatorstringNoNo
flagsnumber | nullNoYesPublic/user flags bitfield
global_namestring | nullNoYes
idstringNoNo
public_flagsnumber | nullNoYes
systembooleanNoYesWhether this is an official system user
usernamestringNoNo

Released under the Apache-2.0 License.