Default Permissions

How would I make my /ban command automatically be allowed for Administrators only until they update it in Integrations settings? For obvious security reasons, it needs to be disabled for on-admins by default in case an admin doesn't configure the permissions.
3 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.
Daniel
DanielOP3y ago
[email protected] what is the key value in the slash command json. and should 8 be a number or string? json default_member_permissions: 8, says <rejected> RangeError [BitFieldInvalid]: Invalid bitfield flag or number: 8.
Jaworek
Jaworek3y ago
it takes string
Want results from more Discord servers?
Add your server