From 1f5127576013bec7b169e2639aec12267893bc37 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sat, 4 Nov 2023 17:09:45 -0500 Subject: [PATCH] typings fix, description optional for all but slash --- src/core/modules.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/modules.ts b/src/core/modules.ts index df0a475b..08774e04 100644 --- a/src/core/modules.ts +++ b/src/core/modules.ts @@ -82,7 +82,7 @@ export function slashCommand(mod: { */ export function textCommand(mod: { name?: string; - description: string; + description?: string; plugins?: AnyCommandPlugin[]; execute: (ctx: Context, options: ['text', string[]]) => Awaitable; }) { @@ -98,7 +98,7 @@ export function textCommand(mod: { */ export function modalCommand(mod: { name?: string; - description: string; + description?: string; plugins?: AnyCommandPlugin[]; execute: (ctx: ModalSubmitInteraction) => Awaitable; }) { @@ -114,7 +114,7 @@ export function modalCommand(mod: { */ export function buttonCommand(mod: { name?: string; - description: string; + description?: string; plugins?: AnyCommandPlugin[]; execute: (ctx: ButtonInteraction) => Awaitable; }) { @@ -130,7 +130,7 @@ export function buttonCommand(mod: { */ export function stringSelectMenuCommand(mod: { name?: string; - description: string; + description?: string; plugins?: AnyCommandPlugin[]; execute: (ctx: StringSelectMenuInteraction) => Awaitable; }) { @@ -146,7 +146,7 @@ export function stringSelectMenuCommand(mod: { */ export function mentionableSelectMenuCommand(mod: { name?: string; - description: string; + description?: string; plugins?: AnyCommandPlugin[]; execute: (ctx: MentionableSelectMenuInteraction) => Awaitable; }) { @@ -162,7 +162,7 @@ export function mentionableSelectMenuCommand(mod: { */ export function channelSelectMenuCommand(mod: { name?: string; - description: string; + description?: string; plugins?: AnyCommandPlugin[]; execute: (ctx: ChannelSelectMenuInteraction) => Awaitable; }) { @@ -178,7 +178,7 @@ export function channelSelectMenuCommand(mod: { */ export function userSelectMenuCommand(mod: { name?: string; - description: string; + description?: string; plugins?: AnyCommandPlugin[]; execute: (ctx: UserSelectMenuInteraction) => Awaitable; }) { @@ -194,7 +194,7 @@ export function userSelectMenuCommand(mod: { */ export function roleSelectMenuCommand(mod: { name?: string; - description: string; + description?: string; plugins?: AnyCommandPlugin[]; execute: (ctx: RoleSelectMenuInteraction) => Awaitable; }) { @@ -210,7 +210,7 @@ export function roleSelectMenuCommand(mod: { */ export function msgContextMenuCommand(mod: { name?: string; - description: string; + description?: string; plugins?: AnyCommandPlugin[]; execute: (ctx: MessageContextMenuCommandInteraction) => Awaitable; }) {