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
- Alphabetic
- By Inheritance
- Role
- Serializable
- Product
- Equals
- UserOrRole
- GetGuild
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val color: Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def guild(implicit snapshot: CacheSnapshot): Option[GatewayGuild]
The guild for this object
The guild for this object
- Definition Classes
- GetGuild
- val guildId: GuildId
- val hoist: Boolean
- val icon: Option[String]
- val id: RoleId
- def isAbove(other: Role): Boolean
Check if this role is above another role.
- def isBelow(other: Role): Boolean
Check if this role is below another role.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val managed: Boolean
- def mention: String
Mention this role.
- val mentionable: Boolean
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val permissions: Permission
- val position: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val tags: Option[RoleTags]
- val unicodeEmoji: Option[String]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])