ApplicationCommandPermissionManager token

I'm in the process of porting over a bot from djs 13 to 14, (and have also started adding typings). In the ApplicationCommandPermissionManager, when adding a permission, it has a required token field. Is this your bot token? Or another kind?
command.permissions.add({
token: ????
permissions: [
{id: maxID, type: ApplicationCommandPermissionType.User, permission: true}
]
})
command.permissions.add({
token: ????
permissions: [
{id: maxID, type: ApplicationCommandPermissionType.User, permission: true}
]
})
Thanks in advance!
6 Replies
d.js toolkit
d.js toolkit4mo ago
treble/luna
treble/luna4mo ago
Thats the oauth2 token of a user a guild admin in this case Obtaining it is out of scope for djs
MaxTechnics
MaxTechnicsOP4mo ago
Of course. Can a bot token be used in case it is admin?
treble/luna
treble/luna4mo ago
No It needs to be an oauth2 token
MaxTechnics
MaxTechnicsOP4mo ago
I see, thanks for the info!
d.js toolkit
d.js toolkit4mo ago
The thread owner has marked this issue as solved.

Did you find this page helpful?