Components & Interactions
getMentionableSelectUserCount
$getMentionableSelectUserCount
$getMentionableSelectUserCount returns the number of values selected by the user in a mentionable select menu, as a number.
Syntax
$getMentionableSelectUserCount
It takes no argument.
Behavior
- Only usable in the callback of a component interaction (a select menu choice). Elsewhere it raises “Select values require a component callback.”.
- If the callback carries no mentionableSelect selection it raises “This callback has no mentionableSelect selection.”.
- To read the selected values themselves, use $getMentionableSelectUserIDs.
Example
$sendMessage[You selected $getMentionableSelectUserCount value(s).]