RoleBuilder

Functions

Link copied to clipboard
abstract fun create(): CompletableDeferred<Role>

Creates the new entity.

Link copied to clipboard
abstract fun setColor(color: Color): RoleBuilder

Sets the color of the role.

Link copied to clipboard
abstract fun setIconHash(iconHash: String): RoleBuilder

Sets the icon hash of the role.

Link copied to clipboard
abstract fun setManaged(managed: Boolean): RoleBuilder

Whether this role is managed by an integration.

Link copied to clipboard
abstract fun setMentionable(mentionable: Boolean): RoleBuilder

Whether this role is mentionable.

Link copied to clipboard
abstract fun setPermissions(permissions: EnumSet<GuildPermission>): RoleBuilder

Sets the permissions of the role.

Link copied to clipboard
abstract fun setPinned(pinned: Boolean): RoleBuilder

Weather if this role is pinned in the user listing.

Link copied to clipboard
abstract fun setPosition(position: Int): RoleBuilder

Sets the position of the role.

Properties

Link copied to clipboard
abstract val json: JsonNode

The json that will be sent to the discord api.