From ab5f25fdcc808449b8f15f293762e9947b76652e Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 17 May 2024 15:39:33 -0600 Subject: [PATCH] dont bother trying to fix channels for interactions --- src/index.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/index.js b/src/index.js index 1956a38..597fd32 100644 --- a/src/index.js +++ b/src/index.js @@ -145,17 +145,6 @@ bot.on("messageReactionAdd", async (msg, reaction, reactor) => { }); bot.on("interactionCreate", async (interaction) => { try { - if (!(interaction.channel instanceof Dysnomia.Channel)) { - const newChannel = hf.bot.getChannel(interaction.channel.id); - if (newChannel) { - interaction.channel = newChannel; - } else { - interaction.channel = await hf.bot.getRESTChannel( - interaction.channel.id - ); - } - } - await InteractionDispatcher(interaction); } catch (err) { const stack = (err?.stack ?? err.message).split("\n");