RoleImpl

class RoleImpl(val yde: YDE, val json: JsonNode, val idAsLong: Long) : Role(source)

Constructors

Link copied to clipboard
constructor(yde: YDE, json: JsonNode, idAsLong: Long)

Functions

Link copied to clipboard
open fun format(format: String): String

Formats the name of the entity

Link copied to clipboard
open override fun formatTo(formatter: Formatter?, flags: Int, width: Int, precision: Int)

Formats the object using the provided {@link Formatter formatter}.

Link copied to clipboard
open override fun hasPermission(vararg permission: GuildPermission): Boolean
open override fun hasPermission(permission: Collection<GuildPermission>): Boolean

Checks if the member has a specific permission.

Link copied to clipboard
open override fun toString(): String

Converts this entity to a string using the io.github.ydwk.ydwk.util.EntityToStringBuilder.

Properties

Link copied to clipboard
open val asIncrement: Long

The increment of this snowflake.

Link copied to clipboard
open val asProcessId: Long

The process id of this snowflake.

Link copied to clipboard
open val asTimestamp: Long

The timestamp of this snowflake. (Milliseconds since Discord Epoch, the first second of 2015 or 1420070400000.)

Link copied to clipboard
open val asWorkerId: Long

The worker id of this snowflake.

Link copied to clipboard
open override var color: Color

The color of this role.

Link copied to clipboard
open override var icon: String?

The icon hash of this role.

Link copied to clipboard
open val id: String

The id of this snowflake as a String.

Link copied to clipboard
open override val idAsLong: Long

The id of this snowflake as a Long.

Link copied to clipboard
open override var isHoisted: Boolean

Gets weather this role is hoisted (if this role is pinned in the user listing).

Link copied to clipboard
open override var isManaged: Boolean

The managed status of this role.

Link copied to clipboard
open override var isMentionable: Boolean

Gets whether this role is mentionable.

Link copied to clipboard
open override val json: JsonNode

The json representation of this entity.

Link copied to clipboard
open override var name: String
Link copied to clipboard
open override var permissions: EnumSet<GuildPermission>

The permissions of this member.

Link copied to clipboard
open override var position: Int

The position of this role.

Link copied to clipboard
open override var rawPermissions: Long

The raw permissions of this role.

Link copied to clipboard
open override var tags: RoleTag?

The tags of this role.

Link copied to clipboard
open override var unicodeEmoji: String?

The unicode emoji of this role.

Link copied to clipboard
open override val yde: YDE

The main YDE instance.