Skip to content

Commit

Permalink
(fix): command interface doesn't accept context
Browse files Browse the repository at this point in the history
  • Loading branch information
LoboMetalurgico committed Jan 9, 2023
1 parent 1f7bb9e commit c8fbd46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/interfaces/IOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ApplicationCommandOptionType, ApplicationCommandPermissions, ApplicationCommandType, APIApplicationCommandOptionChoice, CategoryChannelType } from 'discord.js';
import { IDiscordCommandContext } from './IDiscordCommandContext';
import { DiscordClient } from '../discord';

export interface ICommandManagerOptions {
Expand Down Expand Up @@ -37,7 +38,7 @@ export interface ICommandOptions {
isLegacyCommand?: boolean;
isSlashCommand?: boolean;
allowDM?: boolean;
command: () => void;
command: (context: IDiscordCommandContext) => void;
guildID?: string;
aliases?: string[];
parameters?: ICommandParameter[];
Expand All @@ -47,5 +48,5 @@ export interface ICommandOptions {
}

export interface IAsyncCommandOptions extends ICommandOptions {
command: () => Promise<void>;
command: (context: IDiscordCommandContext) => Promise<void>;
}

0 comments on commit c8fbd46

Please sign in to comment.