#Problem with self roles with bottons
1 messages · Page 1 of 1 (latest)
what is role defined as?
this is the code
where?
^
my code is this
Oh bedankt
he simply didn’t find a role with this ID
I have copied the id of the role
and is correct
How can I resolve?
const role = interaction.guild.roles.cache.get(ROLES[interaction.customId.toUpperCase()])
Why tf do you have 2 interactionCreate events????
ROLES[interaction.customId.toUpperCase()] doesn’t return a good role id
Because I have created 2 interactions
but How can I resolve?
by make it return a correct role id
Can You Write here the correct string?
write what?
I didn’t?
I just told you the issue in YOUR code
But I don't say how resolve it
It's awesome you want to write a discord bot, they are great fun! But, it's also important to learn to walk before you run. We recommend reviewing the javascript basics, because this will help you solve your problem. https://javascript.info Or if you prefer video format https://www.youtube.com/watch?v=Qqx_wzMmFeA