Packages

case class Role(id: RoleId, guildId: GuildId, name: String, icon: Option[String], unicodeEmoji: Option[String], color: Int, hoist: Boolean, position: Int, permissions: Permission, managed: Boolean, mentionable: Boolean, tags: Option[RoleTags]) extends GetGuild with UserOrRole with Product with Serializable

A role in a guild.

id

The id of this role.

guildId

The guildId this role belongs to.

name

The name of this role.

icon

Optional icon of this role.

unicodeEmoji

Optional emoji of this role.

color

The color of this role.

hoist

If this role is listed in the sidebar.

position

The position of this role.

permissions

The permissions this role grant.

managed

If this is a bot role.

mentionable

If you can mention this role.

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

Instance Constructors

  1. new Role(id: RoleId, guildId: GuildId, name: String, icon: Option[String], unicodeEmoji: Option[String], color: Int, hoist: Boolean, position: Int, permissions: Permission, managed: Boolean, mentionable: Boolean, tags: Option[RoleTags])

    id

    The id of this role.

    guildId

    The guildId this role belongs to.

    name

    The name of this role.

    icon

    Optional icon of this role.

    unicodeEmoji

    Optional emoji of this role.

    color

    The color of this role.

    hoist

    If this role is listed in the sidebar.

    position

    The position of this role.

    permissions

    The permissions this role grant.

    managed

    If this is a bot role.

    mentionable

    If you can mention this role.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. val color: Int
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def guild(implicit snapshot: CacheSnapshot): Option[GatewayGuild]

    The guild for this object

    The guild for this object

    Definition Classes
    GetGuild
  10. val guildId: GuildId
    Definition Classes
    RoleGetGuild
  11. val hoist: Boolean
  12. val icon: Option[String]
  13. val id: RoleId
  14. def isAbove(other: Role): Boolean

    Check if this role is above another role.

  15. def isBelow(other: Role): Boolean

    Check if this role is below another role.

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val managed: Boolean
  18. def mention: String

    Mention this role.

  19. val mentionable: Boolean
  20. val name: String
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. val permissions: Permission
  25. val position: Int
  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. val tags: Option[RoleTags]
  29. val unicodeEmoji: Option[String]
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from UserOrRole

Inherited from GetGuild

Inherited from AnyRef

Inherited from Any

Ungrouped