dont bother trying to fix channels for interactions
This commit is contained in:
parent
0e3c2e3952
commit
ab5f25fdcc
1 changed files with 0 additions and 11 deletions
11
src/index.js
11
src/index.js
|
@ -145,17 +145,6 @@ bot.on("messageReactionAdd", async (msg, reaction, reactor) => {
|
||||||
});
|
});
|
||||||
bot.on("interactionCreate", async (interaction) => {
|
bot.on("interactionCreate", async (interaction) => {
|
||||||
try {
|
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);
|
await InteractionDispatcher(interaction);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const stack = (err?.stack ?? err.message).split("\n");
|
const stack = (err?.stack ?? err.message).split("\n");
|
||||||
|
|
Loading…
Reference in a new issue