T
OptionKindTypes
Each option kind's handler value and builder settings. The client's kind table implements every key.
type OptionKindTypes = { … }Members
boolean
{ settings: NoSettings; value: boolean }True or false.
channel
{ settings: ChannelOptionSettings; value: CommandChannel }A channel, resolved from the picked id through Discord's channel store.
integer
{ settings: NumberOptionSettings; value: number }A whole number; a fractional value fails the command.
number
{ settings: NumberOptionSettings; value: number }Any finite number.
role
{ settings: NoSettings; value: CommandRole }A role of the current guild, resolved from the picked id through Discord's role store.
string
{ settings: StringOptionSettings; value: string }Free text.
user
{ settings: NoSettings; value: CommandUser }A user, resolved from the picked id through Discord's user store.