CommandChoice

interface CommandChoice

A single selectable option within a slash-command argument. When the user picks a choice, Discord sends the corresponding value to your handler rather than the display name.

exported from lib.weeble.d

Properties

Property

Type

Description

name

string

Display name of the choice visible to the user.

nameLocalizations?

LocaleMap

Localized display names keyed by Discord locale code.

value

string | number

Underlying value sent when the user picks this choice.