initial commit - base code

This commit is contained in:
SowinskiBraeden committed 2022-12-02 22:08:05 -08:00
commit 00ace29403
15 files changed
+2257

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
module.exports = async (client, interaction) => {
if (interaction.isCommand()) return;
/*
This file handles all menu and button interactions
from any command
*/
let GuildDB = await client.GetGuild(interaction.guildId);
const interactionName = interaction.customId.split("-")[0];
let interactionHandler = client.interactionHandlers.get(interactionName);
try {
interactionHandler.run(client, interaction, GuildDB);
} catch (err) {
client.sendInternalError(interaction, err);
}
}