User
Implementation of the Discord User class in Luau
https://discord.com/developers/docs/resources/user#user-object
Properties
id
The unique identifier for this user.
username
The username of this user.
discriminator
The discriminator of this user, used to distinguish between users with the same username.
globalName
The global display name of this user, if they have one set.
avatar
The avatar hash of this user.
avatarDecoration
The avatar decoration of this user, if they have one.
bot
Whether this user is a bot account.
system
Whether this user is a system account.
mfaEnabled
Whether this user has two-factor authentication enabled.
locale
The user’s preferred language.
verified
Whether this user’s email is verified.
banner
The user’s email address.
flags
The flags that indicate various properties and states of the user.
premiumType
The type of Nitro subscription this user has.
publicFlags
The public flags that indicate various properties and states of the user.
accentColor
The user’s custom profile accent color.
Methods
The User instance has no set methods!
Functions
sync
User . sync () -> ()
self: User
userData: apiTypes.UserObject
Responsible for syncing data to this webhook object. This is typically called by the API when this object is created or updated.
new
User . new () -> ()
userData: apiTypes.UserObject
Responsible for constructing this class.