fix: Fix return type of sernModule

This commit is contained in:
Jacob Nguyen
2022-05-17 18:57:01 -05:00
parent 82f1bad8ff
commit cf85a5db64
2 changed files with 15 additions and 18 deletions

View File

@@ -30,14 +30,14 @@ export type TextCommand = Override<BaseModule, {
export type SlashCommand = Override<BaseModule, {
type: CommandType.Slash;
onEvent?: EventPlugin<CommandType.Slash>[]
plugins?: (CommandPlugin)[];
plugins?: CommandPlugin[];
options?: ApplicationCommandOptionData[];
}>;
export type BothCommand = Override<BaseModule, {
type: CommandType.Both;
onEvent?: EventPlugin<CommandType.Both>[]
plugins?: (CommandPlugin)[]
plugins?: CommandPlugin[]
alias?: string[];
options?: ApplicationCommandOptionData[];
}>;
@@ -45,7 +45,7 @@ export type BothCommand = Override<BaseModule, {
export type ContextMenuUser = Override<BaseModule, {
type: CommandType.MenuUser;
onEvent?: EventPlugin<CommandType.MenuUser>[];
plugins?: (CommandPlugin)[];
plugins?: CommandPlugin[];
execute: (ctx: UserContextMenuCommandInteraction) => Awaitable<void>
}>