Skip to content

Commit b3a1cb2

Browse files
committed
feat: allow AutocompleteInteraction
1 parent b2bf799 commit b3a1cb2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/classes/DiscordCommand.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import type {
77
ChatInputApplicationCommandData,
88
CommandInteraction,
99
Snowflake,
10-
ContextMenuInteraction
10+
ContextMenuInteraction,
11+
AutocompleteInteraction
1112
} from "discord.js";
1213

1314
export default class DiscordCommand extends BaseClass {
@@ -47,6 +48,9 @@ export interface CommandOptions extends ChatInputApplicationCommandData {
4748
permissions?: ApplicationCommandPermissionData[];
4849
hasUserCommand?: boolean;
4950
execute(
50-
interaction: CommandInteraction | ContextMenuInteraction
51+
interaction:
52+
| CommandInteraction
53+
| ContextMenuInteraction
54+
| AutocompleteInteraction
5155
): Awaitable<void>;
5256
}

0 commit comments

Comments
 (0)