dont bother trying to fix channels for interactions

This commit is contained in:
Cynthia Foxwell 2024-05-17 15:39:33 -06:00
parent 0e3c2e3952
commit ab5f25fdcc
1 changed files with 0 additions and 11 deletions

View File

@ -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");