12.8.4 fix interaction guildDB call

This commit is contained in:
SowinskiBraeden committed 2022-10-16 14:24:19 -07:00
1 parent dc7a724d7a
commit 43d6a7742a
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ require('dotenv').config();
module.exports = { module.exports = {
Dev: "PROD.", Dev: "PROD.",
Version: "12.8.3", // (major).(feature).(revision/bug/refactoring) Version: "12.8.4", // (major).(feature).(revision/bug/refactoring)
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
DefaultPrefix: "?", DefaultPrefix: "?",
ServerID: "955668596745461830", ServerID: "955668596745461830",
+2 -2
View File
@@ -5,12 +5,12 @@ module.exports = async (client, interaction) => {
from any command from any command
*/ */
let GuildDB = await client.GetGuild(interaction.guild_id); let GuildDB = await client.GetGuild(interaction.guildId);
const interactionName = interaction.customId.split("-")[0]; const interactionName = interaction.customId.split("-")[0];
let interactionHandler = client.interactionHandlers.get(interactionName); let interactionHandler = client.interactionHandlers.get(interactionName);
try { try {
interactionHandler.run(client, interaction, { GuildDB }); interactionHandler.run(client, interaction, GuildDB);
} catch (err) { } catch (err) {
client.sendInternalError(interaction, err); client.sendInternalError(interaction, err);
} }