Can't get permissions on interaction command working

So with a rest.put I enter the commands in the discord
name: 'getideas',
description: 'get the list of ideas',
defaultMemberPermissions: 'Administrator',
name: 'getideas',
description: 'get the list of ideas',
defaultMemberPermissions: 'Administrator',
I have tried
defaultMemberPermissions: 'ADMINISTRATOR',
defaultMemberPermissions: 'ADMINISTRATOR',
defaultMemberPermissions: '0x0000000000000008',
defaultMemberPermissions: '0x0000000000000008',
defaultMemberPermissions: 'PermissionsBitField.Flags.Administrator',
defaultMemberPermissions: 'PermissionsBitField.Flags.Administrator',
The last one complains that it can serialize with the stringify for the put request None of these work. people without adminstrator rights keep seeing the command wrong. What am I doing wrong here ?
2 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.
Ypsilon
YpsilonOP3y ago
Ouch, ok and type is string but do i use just Administrator then or the 0x0000000000000008 as a string Ok that seems to work now thank you very much @jiralite
Want results from more Discord servers?
Add your server