command permissions

how do i set permissions for commands, meaning only certain ppl can use the command
4 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs3y ago
guide Interactions: Slash command permissions read more
JollyJohn
JollyJohnOP3y ago
so there would have to be a way for admins to use the command at all times? i couldnt just let a few ids only have access? what if they are global commands ok so if i did,
{
id: '876543211234567890',
type: ApplicationCommandPermissionType.id,
permission: true
},
{
id: '876543211234567890',
type: ApplicationCommandPermissionType.id,
permission: true
},
admins could still use the command? is there a reason why this wouldnt work
permissions: [
{
type: 'User',
ids: ['656187771882569769'],
value: true,
},
],
permissions: [
{
type: 'User',
ids: ['656187771882569769'],
value: true,
},
],
probablyraging
Server settings > integrations > your_bot you can change command perms from there
Want results from more Discord servers?
Add your server