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.
3 Replies
deminearchiver
So there is no way to do it using discord.js? Is that token permanent? Thanks!