DiscordLua
discorddiscord
v1.2.9
Install

RoleSelectMenuInteraction

interaction
On this page

RoleSelectMenuInteraction is a DiscordLua interaction representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.

interaction Module 1.2.9 Source

Methods

RoleSelectMenuInteraction:roles()

#

Performs roles on this RoleSelectMenuInteraction. Call it from bot code when you need that operation on the current object.

Signature

RoleSelectMenuInteraction:roles()

Parameters

No parameters.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a RoleSelectMenuInteraction
object:roles()

Examples

Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.

AutocompleteInteraction · ButtonInteraction · ChannelSelectMenuInteraction · CommandInteraction · Interaction · MentionableSelectMenuInteraction · MessageComponentInteraction · MessageContextMenuCommandInteraction

Version: discord 1.2.9 · runtime 1.0.0

Search Ctrl K Navigate Open Esc