Skip to content
Components & Interactions getUserSelectUserCount

$getUserSelectUserCount

$getUserSelectUserCount returns the number of values selected by the user in a user select menu, as a number.

Syntax

$getUserSelectUserCount

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 userSelect selection it raises “This callback has no userSelect selection.”.
  • To read the selected values themselves, use $getUserSelectUserIDs.

Example

$sendMessage[You selected $getUserSelectUserCount value(s).]