Application Command Permissions - Bearer Token required
I wanted to change permission overwrites for my commands, but, as you can see in the screenshot below, it requires a "bearer token". (
AppplicationCommandPermissionManager.set()
): https://discord.js.org/#/docs/main/stable/class/ApplicationCommandPermissionsManager?scrollTo=set
The token is not optional, and I don't know where to get it. Discord API states that this token comes with the response of the authorization request.
So my final question is:
How to set Permission Overwrites for Application Commands?
Discord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/993084287412863066/discord.js.org__1.png)
3 Replies
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/993084474868895764/unknown.png)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/993084573233717329/unknown.png)
So there is no way to do it using discord.js?
Is that token permanent?
Thanks!