-
Which package is this bug report for?discord.js Issue descriptionhttps://github.com/kennedybaird/discord-embed-error Clone repository, npm install, create bot and add to testing server. Use command Use command Error does not appear when setting bot permissions to administrator. Permissions as so: Code sampleNo response Package versionv13 Node.js version16.13.2 Operating systemLinux Priority this issue should haveMedium (should be fixed soon) Which partials do you have configured?No Partials Which gateway intents are you subscribing to?Guilds, GuildMessages I have tested this issue on a development releaseNo response |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 2 replies
-
This isn't to do with discord.js, it's just as you're told: you don't have permissions. Additionally, the screenshot you provided doesn't have embed links enabled and people may take permissions away from your bot. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I am starting to wonder if it is an issue with discordjs as I am able to edit the reply with an embed, without those permissions. Even with those permissions I cannot send the embed successfully. Why can I edit the reply with an embed, but not send a new message to the channel with the embed? |
Beta Was this translation helpful? Give feedback.
-
Permissions errors come from the Discord API, not discord.js. The library does not perform internal permissions checks. |
Beta Was this translation helpful? Give feedback.
-
Right, but that's still not explaining why it works when it's via |
Beta Was this translation helpful? Give feedback.
-
Interaction replies use Webhooks to respond - their permissions are inherently tied to the everyone role, not your bot user. |
Beta Was this translation helpful? Give feedback.
-
Ah, that makes sense. I have tried sitting there putting on all types of permissions for the deployment, and I can't seem to get it work. It doesn't work with embed links turned on either as the user above suggested. Do you have any immediate thoughts? I really appreciate the help - i've been stuck on this for ages |
Beta Was this translation helpful? Give feedback.
-
For example - putting every permission except for Administrator it still doesn't work: Is it something I'm missing with Intents? const client = new Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
});``` |
Beta Was this translation helpful? Give feedback.
-
Changing the values for the invite link won't change any already set permissions. |
Beta Was this translation helpful? Give feedback.
-
Changing them and re-adding to the server does update the role assigned to the bot. |
Beta Was this translation helpful? Give feedback.
-
If the bot is having those permission on its integration role and you are getting that error when sending a message, then there is an overwrite denying the permission(s) in place. |
Beta Was this translation helpful? Give feedback.
-
Thanks - where can I troubleshoot what may be overwriting? |
Beta Was this translation helpful? Give feedback.
-
@SpaceEEC Ok, that was perfect, I found that Is there a way to have my bot not be defined / affected by over-writes like that? |
Beta Was this translation helpful? Give feedback.
-
Only by granting it the administrator permission. (You could also create an overwrite granting for the bot / integration role, allowing that bit, behaves slightly different, but would also work here) |
Beta Was this translation helpful? Give feedback.
-
Can close this (p.s: I did reach out in discord well before posting here) |
Beta Was this translation helpful? Give feedback.
If the bot is having those permission on its integration role and you are getting that error when sending a message, then there is an overwrite denying the permission(s) in place.