Discord User
data class DiscordUser(val id: Snowflake, val username: String, val discriminator: String, val avatar: String?, val bot: OptionalBoolean = OptionalBoolean.Missing, val system: OptionalBoolean = OptionalBoolean.Missing, val mfaEnabled: OptionalBoolean = OptionalBoolean.Missing, val locale: Optional<String> = Optional.Missing(), val verified: OptionalBoolean = OptionalBoolean.Missing, val email: Optional<String?> = Optional.Missing(), val flags: Optional<UserFlags> = Optional.Missing(), val premiumType: Optional<UserPremium> = Optional.Missing(), val publicFlags: Optional<UserFlags> = Optional.Missing(), val banner: String? = null, val accentColor: Int? = null)(source)
A representation of the Discord User structure.
Parameters
id
The user's id.
username
the user's username, not unique across the platform.
discriminator
the 4-digit discord-tag.
avatar
the user's avatar hash.
bot
Whether the user belongs to an OAuth2 application.
system
whether the user is an Official Discord System user (part of the urgent message system).
mfa Enabled
Whether the user has two factor enabled on their account.
locale
The user's chosen language option.
verified
Whether the email on this account has been verified. Requires the email OAuth2 scope.
email
The user's email. Requires the email OAuth2 scope.
flags
The flags on a user's account. Unlike publicFlags, these are not visible to other users.
premium Type
The type of Nitro subscription on a user's account.
public Flags
The public flags on a user's account. Unlike flags, these are visible ot other users.
Constructors
Link copied to clipboard
constructor(id: Snowflake, username: String, discriminator: String, avatar: String?, bot: OptionalBoolean = OptionalBoolean.Missing, system: OptionalBoolean = OptionalBoolean.Missing, mfaEnabled: OptionalBoolean = OptionalBoolean.Missing, locale: Optional<String> = Optional.Missing(), verified: OptionalBoolean = OptionalBoolean.Missing, email: Optional<String?> = Optional.Missing(), flags: Optional<UserFlags> = Optional.Missing(), premiumType: Optional<UserPremium> = Optional.Missing(), publicFlags: Optional<UserFlags> = Optional.Missing(), banner: String? = null, accentColor: Int? = null)