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. val color: Int
  2. def guild(implicit snapshot: CacheSnapshot): Option[GatewayGuild]

    The guild for this object

    The guild for this object

    Definition Classes
    GetGuild
  3. val guildId: GuildId
    Definition Classes
    RoleGetGuild
  4. val hoist: Boolean
  5. val icon: Option[String]
  6. val id: RoleId
  7. def isAbove(other: Role): Boolean

    Check if this role is above another role.

  8. def isBelow(other: Role): Boolean

    Check if this role is below another role.

  9. val managed: Boolean
  10. def mention: String

    Mention this role.

  11. val mentionable: Boolean
  12. val name: String
  13. val permissions: Permission
  14. val position: Int
  15. def productElementNames: Iterator[String]
    Definition Classes
    Product
  16. val tags: Option[RoleTags]
  17. val unicodeEmoji: Option[String]