case class Role(id: RoleId, guildId: GuildId, name: String, color: Int, hoist: Boolean, position: Int, permissions: Permission, managed: Boolean, mentionable: Boolean) extends GetGuild 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.
- 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.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Role
- Serializable
- Serializable
- Product
- Equals
- GetGuild
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Role(id: RoleId, guildId: GuildId, name: String, color: Int, hoist: Boolean, position: Int, permissions: Permission, managed: Boolean, mentionable: Boolean)
- id
The id of this role.
- guildId
The guildId this role belongs to.
- name
The name 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( ... ) @native()
- val color: Int
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
guild(implicit snapshot: CacheSnapshot): Option[Guild]
The guild for this object
The guild for this object
- Definition Classes
- GetGuild
- val guildId: GuildId
- val hoist: Boolean
- 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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val permissions: Permission
- val position: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()