#Discord.js permissions overwrite not working

25 messages · Page 1 of 1 (latest)

polar arch
rare hullBOT
#

• 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.

polar arch
#

(node: v16.15.1)

polar arch
#

(no error)

stable palm
#

<channel>.permissionOverwrites.cache

polar arch
#

moment

polar arch
stable palm
polar arch
#

Nope

#

console.log(interaction.user.id) gives me the correct user id

stable palm
polar arch
#

idk what else to check

stable palm
polar arch
#

if there is interaction.user.id, then there is no response except for an embed with the upload information

stable palm
#

Ohh sorry didn’t see that first time thru.

rare hullBOT
#

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.

polar arch
#

my bot is administrator and has the highest role

snow silo
#

I figure you as interaction.user have a higher role than the bot, so they can’t add overwrites for you

#

Owner is higher

polar arch
#

lol, only it worked

stable palm
#

That worked?