Closed superJK92iscool closed 2 years ago
Hiya, please make sure you're running at least node.js 16.6.0 or higher
Now I get
DiscordAPIError[50001]: Missing Access
at SequentialHandler.runRequest (C:\Users\super\form-fox\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.js:198:23
)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (C:\Users\super\form-fox\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.j
s:99:20)
at async InteractionHandler.load (C:\Users\super\form-fox\bot\handlers\interaction.js:157:6)
at async Client.<anonymous> (C:\Users\super\form-fox\bot\handlers\interaction.js:19:4) {
rawError: { message: 'Missing Access', code: 50001 },
code: 50001,
status: 403,
method: 'put',
url: 'https://discord.com/api/v10/applications/985710408071524413/guilds/979565697137000508/commands'
}
DiscordAPIError[50001]: Missing Access
at SequentialHandler.runRequest (C:\Users\super\form-fox\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.js:198:23
)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (C:\Users\super\form-fox\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.j
s:99:20)
at async InteractionHandler.load (C:\Users\super\form-fox\bot\handlers\interaction.js:157:6)
at async Client.<anonymous> (C:\Users\super\form-fox\bot\handlers\interaction.js:19:4) {
rawError: { message: 'Missing Access', code: 50001 },
code: 50001,
status: 403,
method: 'put',
url: 'https://discord.com/api/v10/applications/985710408071524413/guilds/979565697137000508/commands'
}
You'll need to re-invite your bot's application to the server you have set up in the .env
with the applications.commands
scope added to the invite
How do I get it so only I can accept and decline forms so admins can't.
I just changed the channel that the responses post to, to a private channel that I and discord bots can view and send messages in.
When I run
node bot/bot
I get