Discord.js permissions overwrite not working
When I try to add the user ID to the channel, nothing happens. I'm sure I entered the data correctly (I checked with console.log).
Im using discord.js v13.10.2
code is open source: https://github.com/SkyndalexProjects/SkyndalexBot/blob/dev/src/interactions/buttons/tickets/send/sendComplaints.js
18 Replies
• 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 idNot 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 @korrumz2:
• 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
Other users lower than the administration cannot use this function either
lol, only it worked
That worked?
Yeah