Packages

case class User(id: UserId, username: String, discriminator: String, avatar: Option[String], bot: Option[Boolean], system: Option[Boolean], mfaEnabled: Option[Boolean], banner: Option[String], accentColor: Option[Int], locale: Option[String], verified: Option[Boolean], email: Option[String], flags: Option[UserFlags], premiumType: Option[PremiumType], publicFlags: Option[UserFlags]) extends Author[User] with UserOrRole with Product with Serializable

A Discord user.

id

The id of the user.

username

The name of the user.

discriminator

The discriminator for the user. Those four last digits when clicking in a users name.

avatar

The users avatar hash.

bot

If this user belongs to a OAuth2 application.

system

If the user is part of Discord's urgent messaging system.

mfaEnabled

If this user has two factor authentication enabled.

banner

The user's banner image hash.

accentColor

The user's banner color as an RGB int.

locale

The user's chosen language.

verified

If this user email is verified. Requires the email OAuth scope.

email

The users email. Requires the email OAuth scope.

flags

The flags on a user's account.

premiumType

The type of nitro the account has.

publicFlags

The public flags on a user's account.

Source
message.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. User
  2. Serializable
  3. Product
  4. Equals
  5. UserOrRole
  6. Author
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new User(id: UserId, username: String, discriminator: String, avatar: Option[String], bot: Option[Boolean], system: Option[Boolean], mfaEnabled: Option[Boolean], banner: Option[String], accentColor: Option[Int], locale: Option[String], verified: Option[Boolean], email: Option[String], flags: Option[UserFlags], premiumType: Option[PremiumType], publicFlags: Option[UserFlags])

    id

    The id of the user.

    username

    The name of the user.

    discriminator

    The discriminator for the user. Those four last digits when clicking in a users name.

    avatar

    The users avatar hash.

    bot

    If this user belongs to a OAuth2 application.

    system

    If the user is part of Discord's urgent messaging system.

    mfaEnabled

    If this user has two factor authentication enabled.

    banner

    The user's banner image hash.

    accentColor

    The user's banner color as an RGB int.

    locale

    The user's chosen language.

    verified

    If this user email is verified. Requires the email OAuth scope.

    email

    The users email. Requires the email OAuth scope.

    flags

    The flags on a user's account.

    premiumType

    The type of nitro the account has.

    publicFlags

    The public flags on a user's account.

Value Members

  1. val accentColor: Option[Int]
  2. val avatar: Option[String]
  3. val banner: Option[String]
  4. val bot: Option[Boolean]
  5. val discriminator: String

    The discriminator of the author.

    The discriminator of the author.

    Definition Classes
    UserAuthor
  6. val email: Option[String]
  7. val flags: Option[UserFlags]
  8. val id: UserId

    The id for this author.

    The id for this author.

    Definition Classes
    UserAuthor
  9. def isUser: Boolean

    If this author is not a webhook.

    If this author is not a webhook.

    Definition Classes
    UserAuthor
  10. val locale: Option[String]
  11. def mention: String

    Mention this user.

  12. def mentionNick: String

    Mention this user with their nickname.

  13. val mfaEnabled: Option[Boolean]
  14. val premiumType: Option[PremiumType]
  15. def productElementNames: Iterator[String]
    Definition Classes
    Product
  16. val publicFlags: Option[UserFlags]
  17. val system: Option[Boolean]
  18. val username: String

    The name of the author.

    The name of the author.

    Definition Classes
    UserAuthor
  19. val verified: Option[Boolean]