11 lines
No EOL
418 B
TypeScript
11 lines
No EOL
418 B
TypeScript
import { commandExecuteNameHashMap, DiscordCommand, DiscordCommandExecute } from "../command";
|
|
import { defineEvent } from "../event";
|
|
|
|
export default defineEvent("interactionCreate", async (interaction) => {
|
|
if (!interaction.isChatInputCommand())
|
|
return;
|
|
|
|
if (commandExecuteNameHashMap[interaction.commandName]) {
|
|
await commandExecuteNameHashMap[interaction.commandName](interaction);
|
|
}
|
|
}) |