Checking bot permissions in a channel

Do it with permissions.has()?
5 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Idris
Idris2y ago
<GuildChannel>.permissionsFor(guild.members.me).has(...)
Alexcitten
AlexcittenOP2y ago
Thank you
Emanuel
Emanuel2y ago
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: SEND_MESSAGES.
d.js docs
d.js docs2y ago
Tag suggestion for @emsa001: RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined • All SCREAMING_SNAKE_CASE enums have been changed to PascalCase • Intents: Intents.FLAGS.GUILD_MESSAGES -> GatewayIntentBits.GuildMessages • Permissions: Permissions.FLAGS.SEND_MESSAGES -> PermissionFlagsBits.SendMessages
Want results from more Discord servers?
Add your server