From 30470d8551125f6826cc7ecb19066de64999d630 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sun, 7 Mar 2021 15:45:53 +0100 Subject: [PATCH] update types --- src/types/webhook.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/types/webhook.ts b/src/types/webhook.ts index 225034a86..573b0117a 100644 --- a/src/types/webhook.ts +++ b/src/types/webhook.ts @@ -237,20 +237,20 @@ export interface EditSlashResponseOptions extends SlashCommandCallbackData { export interface UpsertSlashCommandOptions { /** 3-32 character command name */ - name: string; + name?: string; /** 1-100 character description */ - description: string; + description?: string; /** The parameters for the command */ - options?: SlashCommandOption[]; + options?: SlashCommandOption[] | null; } export interface UpsertSlashCommandsOptions { /** The id of the command */ id: string; /** 3-32 character command name */ - name: string; + name?: string; /** 1-100 character description */ - description: string; + description?: string; /** The parameters for the command */ - options?: SlashCommandOption[]; + options?: SlashCommandOption[] | null; }