RoleSelectMenu

interface RoleSelectMenu

Interface for role select menus.

Inheritors

Properties

Link copied to clipboard
abstract var defaultRoles: MutableList<Snowflake>

Default roles to preselect.

Functions

Link copied to clipboard
open fun applyRoleSelectMenu(selectMenu: SelectMenu<*, *>, builder: ActionRowBuilder)

Apply the role select menu to an action row builder.

Link copied to clipboard
open fun defaultRole(vararg roles: Snowflake)
open fun defaultRole(vararg roles: RoleBehavior)
open fun defaultRole(roles: Collection<Snowflake>)

Add default pre-selected roles to the selector.