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; }) {