Represents a Discord user.

Webhooks sometimes have enough information to determine what type of user the data represents (~#publicFlags, ~#avatarDecoration).

Hierarchy

  • User

Constructors

Properties

avatar?: string

The avatar of the user.

avatarDecoration?: string

The avatar decoration of the user (available for user mentions).

bot: boolean

Whether the user is a bot.

discriminator: string

The discriminator of the user.

id: string

The ID of the user.

publicFlags?: UserFlags

The public flags that the user has.

username: string

The username of the user.

webhook: Webhook

Accessors

Methods

Generated using TypeDoc