Check if user has write permissions in channel

Is there an easy way to check if a user has write permissions for a channel?
5 Replies
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
RiskyMH
RiskyMH•3y ago
For sending https://discord.js.org/#/docs/discord.js/main/class/TextChannel?scrollTo=permissionsFor so something like:
channel.permissionsFor(member).has(PermissionsBitField.Flags.SendMessages)
channel.permissionsFor(member).has(PermissionsBitField.Flags.SendMessages)
Discord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
RiskyMH
RiskyMH•3y ago
but what is "write permissions" (as i am just guessing that it is send)
jr
jrOP•3y ago
Thanks @riskymh Yeah, just send.
RiskyMH
RiskyMH•3y ago
🙂
Want results from more Discord servers?
Add your server