GuildRole

data class GuildRole(val name: String, val node: String, val level: Int)(source)

A data class representing a role in a guild.

Constructors

Link copied to clipboard
fun GuildRole(name: String, node: String, level: Int)

Creates an instance of GuildRole.

Functions

Link copied to clipboard

Adds a permission to the set of permissions associated with the role.

Link copied to clipboard

Gets the set of permissions associated with the role.

Link copied to clipboard

Checks whether the role has a specific permission.

Link copied to clipboard

Removes a permission from the set of permissions associated with the role.

Properties

Link copied to clipboard
val level: Int

An integer representing the level of the role.

Link copied to clipboard

A string representing the name of the role.

Link copied to clipboard

A string representing the node of the role.