#Thread help
1 messages · Page 1 of 1 (latest)
So you are setting the permissions on startup of the bot?
ye
What did you rename the perms array to?
const fullPermissions = []
client.application.commands.fetch().then(e => {
e.map(comm => {
fullPermissions.push({
id: comm.id,
permissions: [{
id: '628703380851916827',
type: 'USER',
permission: true,
}],
})
})
guild.commands.permissions.set({
fullPermissions
})
})
})```
and it didnt error
Are you using slashcommandbuilder?
ye
Add .setDefaultPermission(false)
yep
To all your commands
yep
Can you use the commands then after you have done that?
nope they dont show in the menu
So the commands aren't registering?
yeah it seems so
Drop your permissions part and see if they register
kk
They should appear like this
nothing
Are you registering commands to guild or global?
global
Good, now apply your permissions
Yeah, better to use guild for dev purposes
kk
Then once you are happy, push it to global
Once pushing to global I need to wait to push after clearing global right