401 error when editing command permission

Hey, when I tried to use bot's token to set command permission, I get 401 error. Am I missing any permission scopes?
guild.commands.permissions.set({
command: "CmDID",
token: config['botToken'],
permissions: commandPermConfig,
})
guild.commands.permissions.set({
command: "CmDID",
token: config['botToken'],
permissions: commandPermConfig,
})
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MrMythical
MrMythical2y ago
Need to use a bearer token Bots cannot set permissions for commands Since permissions v2
The Big E in Math -> Σ
well that sucks, thanks for the reply.