Permissions Issue?
question, i check if bot has ManageChannels in guild, and then create a channel, log shows that it has perm, but then when trying it errors with "Missing Permissions", why
https://cdn.crni.xyz/r/ppaAMMmeE.png
20 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!14.11.0 & 20.2
use the PermissionsBitField enum to check permissions
i dont see ManageChannels in thate list of perms either
that changes absolutely nothing lol
its cut at top
it does fix the way you check your permissions
no it doesnt, else there would be type error
PermissionResolvable is
keyof PermissionFlagsBits
which means its goodIt seems like you are specifying overwrites there, which your bot may lack permission to apply.
it does, permissions.has takes a BigInt, not a string
not true
why am i wasting time explaining to you how types work
which permissions would it need to apply those?
those listed or
Applying manage roles requires administrator (or already having it in a channel overwrites, which is not possible when creating)
oh
only manage roles?
Yeah
ah thanks lol
For the others it's sufficient to have them in the guild I believe.
lemme check
yup
ty