Skip to content

CommandInteractionOption ​

typedef · Source

Represents an option of a received command interaction. Type: Object

Properties ​

name ​

name: string

The name of the option

type ​

type: ApplicationCommandOptionType

The type of the option

autocomplete ​

optional

autocomplete: boolean

Whether the option is an autocomplete option

value ​

optional

value: string | number | boolean

The value of the option

options ​

optional

options: Array<CommandInteractionOption>

Additional options if this option is a subcommand (group)

user ​

optional

user: User

The resolved user

member ​

optional

member: GuildMember | APIGuildMember

The resolved member

channel ​

optional

channel: GuildChannel | ThreadChannel | APIChannel

The resolved channel

role ​

optional

role: Role | APIRole

The resolved role

attachment ​

optional

attachment: MessageAttachment

The resolved attachment

Unofficial software. Not affiliated with or supported by Discord.