I am getting this error:
Editing application command permissions requires an OAuth2 bearer token, but none was provided
trying to set permissions to a command in discord js v14. Does anyone have an idea how I can fix it?
const fullPermissions = [
{
id: "command ID",
permissions: [{
id: "user id",
type: "USER",
permission: false
}]
}
]
client.guilds.cache.get("server id").commands.permissions.set({
fullPermissions
})