Skip to content

Commit f05b089

Browse files
committed
fix: interaction type error
1 parent 8254100 commit f05b089

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot/src/events/interactionCreate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { Interaction } from "../structures/command";
12
import { Event } from "../structures/event";
23

34
export default new Event({
@@ -9,7 +10,7 @@ export default new Event({
910

1011
const command = client.commands.get(interaction.commandName);
1112
if (!command) return;
12-
command.run({ client, interaction });
13+
command.run({ client, interaction: interaction as Interaction });
1314
}
1415
},
1516
});

0 commit comments

Comments
 (0)