Replies: 1 comment
-
The role you're trying to add is probably higher then the highest role of the bot. Please use Support server for questions insted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{title}}
-
Which package is this bug report for?
discord.js
Issue description
PS D:.Projects\HewkawDiscordBotProject\M2Bot> node .
Launched shard 0
[0] Started refreshing application (/) commands.
[0] Successfully reloaded 1 application (/) commands.
[0] Ready! Logged in as สองทับแปดบวกก้าว's Staff#8852
node:events:491
throw er; // Unhandled 'error' event
^
DiscordAPIError[50013]: Missing Permissions
at handleErrors (D:.Projects\HewkawDiscordBotProject\M2Bot\node_modules@discordjs\rest\dist\index.js:687:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (D:.Projects\HewkawDiscordBotProject\M2Bot\node_modules@discordjs\rest\dist\index.js:1072:23)
at async SequentialHandler.queueRequest (D:.Projects\HewkawDiscordBotProject\M2Bot\node_modules@discordjs\rest\dist\index.js:913:14)
at async _REST.request (D:.Projects\HewkawDiscordBotProject\M2Bot\node_modules@discordjs\rest\dist\index.js:1218:22)
at async GuildMemberRoleManager.add (D:.Projects\HewkawDiscordBotProject\M2Bot\node_modules\discord.js\src\managers\GuildMemberRoleManager.js:131:7)
at async Object.execute (D:.Projects\HewkawDiscordBotProject\M2Bot\events\interactionCreateModal.js:120:37)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
requestBody: { files: undefined, json: undefined },
rawError: { message: 'Missing Permissions', code: 50013 },
code: 50013,
status: 403,
method: 'PUT',
url: 'https://discord.com/api/v10/guilds/1121829832423129160/members/758681611251744788/roles/1181943769789108255'
}
Node.js v18.13.0
Code sample
Versions
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
GuildMember
Which gateway intents are you subscribing to?
Guilds, GuildMembers, GuildModeration, GuildIntegrations, GuildVoiceStates, GuildMessages, DirectMessages, MessageContent
I have tested this issue on a development release
discord.js@14.15.0-dev.1701821380-8ace6face
Beta Was this translation helpful? Give feedback.
All reactions