#Discord.js permissions overwrite not working
25 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
(node: v16.15.1)
(no error)
Try to log the channel overwrites
<channel>.permissionOverwrites.cache
moment
i dont have output
The channel gets created?
Nope
it only works when I remove interaction.user.id from overwrites
console.log(interaction.user.id) gives me the correct user id
Not sure why you don’t get output
idk what else to check
Does the channel get created?
.
if there is interaction.user.id, then there is no response except for an embed with the upload information
Ohh sorry didn’t see that first time thru.
Tag suggestion for @polar arch:
• Bots cannot moderate (kick/ban/nickname/...) a target with a higher or equally high highest role or the guild owner.
• Bots cannot modify (edit/add/remove) roles that are higher or equally high compared to the bot's highest role.
• The ADMINISTRATOR permission does not skip these checks.
my bot is administrator and has the highest role
I figure you as interaction.user have a higher role than the bot, so they can’t add overwrites for you
Owner is higher
Other users lower than the administration cannot use this function either
lol, only it worked
That worked?