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
d.js docs
d.js docs3y ago
• 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.
Korrumz2
Korrumz2OP3y ago
(node: v16.15.1) (no error)
SpecialSauce
SpecialSauce3y ago
Try to log the channel overwrites <channel>.permissionOverwrites.cache
Korrumz2
Korrumz2OP3y ago
moment
Korrumz2
Korrumz2OP3y ago
i dont have output
SpecialSauce
SpecialSauce3y ago
The channel gets created?
Korrumz2
Korrumz2OP3y ago
Nope it only works when I remove interaction.user.id from overwrites
Korrumz2
Korrumz2OP3y ago
console.log(interaction.user.id) gives me the correct user id
SpecialSauce
SpecialSauce3y ago
Not sure why you don’t get output
Korrumz2
Korrumz2OP3y ago
idk what else to check
SpecialSauce
SpecialSauce3y ago
Does the channel get created?
Korrumz2
Korrumz2OP3y ago
. if there is interaction.user.id, then there is no response except for an embed with the upload information
SpecialSauce
SpecialSauce3y ago
Ohh sorry didn’t see that first time thru.
d.js docs
d.js docs3y ago
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.
Korrumz2
Korrumz2OP3y ago
my bot is administrator and has the highest role Other users lower than the administration cannot use this function either
Korrumz2
Korrumz2OP3y ago
lol, only it worked
SpecialSauce
SpecialSauce3y ago
That worked?
Korrumz2
Korrumz2OP3y ago
Yeah
Want results from more Discord servers?
Add your server