#hopefully a thread is easier

1 messages · Page 1 of 1 (latest)

glad tree
#

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 });
            }
        }
    }
});```
clear sundial
glad tree
#

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

glad tree
#

crap, I totally missed that that is in there.

clear sundial
#

Happens to the best of us my friend

glad tree
#

i wonder why it didn't affect v13

clear sundial
#

It likely did

glad tree
#

nah, I've been using this bot for 18 months and this issue just started after upgrade to v14

clear sundial
#

Then you must’ve been using the commands only in that channel

#

As that’s valid v13 syntax

glad tree
#

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

clear sundial
#

Well you’re quite wrong to say the least, only way it would have worked for all channels if that wasn’t there