How can I check if I can overwrite channel permissions?
I prefer to check permissions before acting. So if I want to create a channel I check
So, how can I check if I can overwrite channel permissions? In what situations might a bot not have enough perms to perform this action? What kind of bitField is needed to execute lockPermissions()?
6 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.you need manage roles on the channel to change permissions
probably don't even need manage channels, that's name, topic, delete, slowmode, etc.
thx
What about embeds? What kind of perms do bot needed to send embeds? AttachFiles or EmbedLinks?
latter
former, if you want to send an attachment with it, ofc
on your channel edit, put lockpermission : true
channel.permissionoverwrite.edit((
lockpermission : true,
permissions: [the permissions]
))
thx