Skip to content

DiscordUser

DiscordUser represents a user on Discord, encapsulating user data such as username, avatar, and various flags.

Properties

username

DiscordUser.username  :: string

flags

DiscordUser.flags  :: string

mfaEnabled

DiscordUser.mfaEnabled  :: boolean

avatar

DiscordUser.avatar  :: string

id

DiscordUser.id  :: string

bot

DiscordUser.bot  :: boolean

verified

DiscordUser.verified  :: boolean

discriminator

DiscordUser.discriminator  :: string

Methods

The DiscordUser instance has no set methods!

Functions

new

DiscordUser . new (

     discordClient: any
     partialUserData: table
)  -> ()

Creates a new instance of DiscordUser.