#hopefully a thread is easier
1 messages · Page 1 of 1 (latest)
yes i do.
client.on('interactionCreate', async interaction => {
if (interaction.channelId === "1078349646574927922") {
if(interaction.isStringSelectMenu()){
if(interaction.customId == 'reactionroles'){
try {
await execute(interaction);
} catch (error) {
console.error(error);
await interaction.reply({ content: 'There was an error while executing reactionroles!', ephemeral: true });
}
}
}
if (interaction.isCommand()){
const command = client.commands.get(interaction.commandName);
if (!command) return;
try {
await command.execute(interaction);
} catch (error) {
console.error(error);
await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true });
}
}
}
});```
Do you want commands to only execute in a certain channel?
no, I want them in all channels. it worked fine for v13, but now that i'm on v14 it is only working in one channel
i don't have anything checking for the channel
Then remove the check
crap, I totally missed that that is in there.
Happens to the best of us my friend
i wonder why it didn't affect v13
It likely did
nah, I've been using this bot for 18 months and this issue just started after upgrade to v14
Then you must’ve been using the commands only in that channel
As that’s valid v13 syntax
I'm not trying to argue or debate, but this all worked fine in v13 in every channel. I've got a lotof channels in my server
but it works now. thank you very much for your help
Well you’re quite wrong to say the least, only way it would have worked for all channels if that wasn’t there