Skip to content

Commit

Permalink
typings fix, description optional for all but slash
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Nov 4, 2023
1 parent b689be4 commit 1f51275
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/core/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<unknown>;
}) {
Expand All @@ -98,7 +98,7 @@ export function textCommand(mod: {
*/
export function modalCommand(mod: {
name?: string;
description: string;
description?: string;
plugins?: AnyCommandPlugin[];
execute: (ctx: ModalSubmitInteraction) => Awaitable<unknown>;
}) {
Expand All @@ -114,7 +114,7 @@ export function modalCommand(mod: {
*/
export function buttonCommand(mod: {
name?: string;
description: string;
description?: string;
plugins?: AnyCommandPlugin[];
execute: (ctx: ButtonInteraction) => Awaitable<unknown>;
}) {
Expand All @@ -130,7 +130,7 @@ export function buttonCommand(mod: {
*/
export function stringSelectMenuCommand(mod: {
name?: string;
description: string;
description?: string;
plugins?: AnyCommandPlugin[];
execute: (ctx: StringSelectMenuInteraction) => Awaitable<unknown>;
}) {
Expand All @@ -146,7 +146,7 @@ export function stringSelectMenuCommand(mod: {
*/
export function mentionableSelectMenuCommand(mod: {
name?: string;
description: string;
description?: string;
plugins?: AnyCommandPlugin[];
execute: (ctx: MentionableSelectMenuInteraction) => Awaitable<unknown>;
}) {
Expand All @@ -162,7 +162,7 @@ export function mentionableSelectMenuCommand(mod: {
*/
export function channelSelectMenuCommand(mod: {
name?: string;
description: string;
description?: string;
plugins?: AnyCommandPlugin[];
execute: (ctx: ChannelSelectMenuInteraction) => Awaitable<unknown>;
}) {
Expand All @@ -178,7 +178,7 @@ export function channelSelectMenuCommand(mod: {
*/
export function userSelectMenuCommand(mod: {
name?: string;
description: string;
description?: string;
plugins?: AnyCommandPlugin[];
execute: (ctx: UserSelectMenuInteraction) => Awaitable<unknown>;
}) {
Expand All @@ -194,7 +194,7 @@ export function userSelectMenuCommand(mod: {
*/
export function roleSelectMenuCommand(mod: {
name?: string;
description: string;
description?: string;
plugins?: AnyCommandPlugin[];
execute: (ctx: RoleSelectMenuInteraction) => Awaitable<unknown>;
}) {
Expand All @@ -210,7 +210,7 @@ export function roleSelectMenuCommand(mod: {
*/
export function msgContextMenuCommand(mod: {
name?: string;
description: string;
description?: string;
plugins?: AnyCommandPlugin[];
execute: (ctx: MessageContextMenuCommandInteraction) => Awaitable<unknown>;
}) {
Expand Down

0 comments on commit 1f51275

Please sign in to comment.