DiscordApplicationCommandData

Inherits: DiscordInteractionData < Reference < Object

Description

Represents an application command event data.

Properties

type name
int command_id
String name
int type
DiscordApplicationCommandResolvedData resolved
Array options
int target_id
int guild_id

Property Descriptions

  • int command_id

    Id of the executed command.


  • String name

    Name of the executed command.


  • int type

    Type of application command.


  • DiscordApplicationCommandResolvedData resolved

    Resolved entities data.


  • Array options

    List of DiscordApplicationCommandData.DataOptions of user input.


  • int target_id

    Id of the user or message targeted by a user or message command.


  • int guild_id

    Id of the guild the command is registered to.

Sub Classes


DataOption

Inherits: Reference < Object

Description

Represents the options sent along with an application command data.

Properties

type name
String name
int type
Variant value
Array options
bool focused

Property Descriptions

  • String name

    Represents the options sent along with an application command data. Option's name.


  • int type

    Option's type.


  • Variant value

    Option's value.


  • Array options

    If this option is group or a subcommand it contains a list of DiscordApplicationCommandData.DataOptions.


  • bool focused

    In an autocomplete interaction, this is true if user input is currently focused on this option.