10 lines
365 B
TypeScript
10 lines
365 B
TypeScript
import { commandExecuteNameHashMap } 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);
|
|
}
|
|
});
|