From ed85685d35912d4bbbcdc3668019b00ee2f012a1 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Mon, 8 Mar 2021 14:43:30 +0100 Subject: [PATCH] add type (#619) --- src/types/api/interaction.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types/api/interaction.ts b/src/types/api/interaction.ts index 993409fc9..177c26802 100644 --- a/src/types/api/interaction.ts +++ b/src/types/api/interaction.ts @@ -59,6 +59,8 @@ export interface DiscordApplicationCommandInteractionDataResolved { export interface DiscordInteractionDataOption { /** the name of the parameter */ name: string; + /** value of ApplicationCommandOptionType */ + type: DiscordApplicationCommandOptionType; /** the value of the pair. present if there was no more options */ value?: string | number; /** present if this option is a group or subcommand */ @@ -70,7 +72,7 @@ export interface DiscordApplicationCommand { /** unique id of the command */ id: string; /** unique id of the parent application */ - "application_id": string; + application_id: string; /** 3-32 character name matching `^[\w-]{3,32}$` */ name: string; /** 1-100 character description */