We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2bf799 commit b3a1cb2Copy full SHA for b3a1cb2
src/classes/DiscordCommand.ts
@@ -7,7 +7,8 @@ import type {
7
ChatInputApplicationCommandData,
8
CommandInteraction,
9
Snowflake,
10
- ContextMenuInteraction
+ ContextMenuInteraction,
11
+ AutocompleteInteraction
12
} from "discord.js";
13
14
export default class DiscordCommand extends BaseClass {
@@ -47,6 +48,9 @@ export interface CommandOptions extends ChatInputApplicationCommandData {
47
48
permissions?: ApplicationCommandPermissionData[];
49
hasUserCommand?: boolean;
50
execute(
- interaction: CommandInteraction | ContextMenuInteraction
51
+ interaction:
52
+ | CommandInteraction
53
+ | ContextMenuInteraction
54
+ | AutocompleteInteraction
55
): Awaitable<void>;
56
}
0 commit comments