12.8.4 fix interaction guildDB call
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -4,13 +4,13 @@ module.exports = async (client, interaction) => {
|
||||
This file handles all menu and button interactions
|
||||
from any command
|
||||
*/
|
||||
|
||||
let GuildDB = await client.GetGuild(interaction.guild_id);
|
||||
|
||||
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 });
|
||||
interactionHandler.run(client, interaction, GuildDB);
|
||||
} catch (err) {
|
||||
client.sendInternalError(interaction, err);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user