Permissions

if (!interaction.member.permissions.has(Permissions.FLAG.MANAGE_MESSAGES)) {
return interaction.reply({ embeds: [permissionEmbed], ephemeral:true})
}
if (!interaction.member.permissions.has(Permissions.FLAG.MANAGE_MESSAGES)) {
return interaction.reply({ embeds: [permissionEmbed], ephemeral:true})
}
Error
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: MANAGE_MESSAGES.
at Function.resolve (D:\PA_Admin Backup copy\node_modules\discord.js\src\util\BitField.js:168:11)
at PermissionsBitField.has (D:\PA_Admin Backup copy\node_modules\discord.js\src\util\BitField.js:60:28)
at PermissionsBitField.has (D:\PA_Admin Backup copy\node_modules\discord.js\src\util\PermissionsBitField.js:92:82)
at Object.execute (D:\PA_Admin Backup copy\Events\interactionCreate.js:20:49)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:381:10)
at processTicksAndRejections (node:internal/process/task_queues:85:21) {
[Symbol(code)]: 11
}
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: MANAGE_MESSAGES.
at Function.resolve (D:\PA_Admin Backup copy\node_modules\discord.js\src\util\BitField.js:168:11)
at PermissionsBitField.has (D:\PA_Admin Backup copy\node_modules\discord.js\src\util\BitField.js:60:28)
at PermissionsBitField.has (D:\PA_Admin Backup copy\node_modules\discord.js\src\util\PermissionsBitField.js:92:82)
at Object.execute (D:\PA_Admin Backup copy\Events\interactionCreate.js:20:49)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:381:10)
at processTicksAndRejections (node:internal/process/task_queues:85:21) {
[Symbol(code)]: 11
}
3 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
PAdventures
PAdventuresOP3y ago
k thanks
souji
souji3y ago
see changes guide pinned in #djs-help-v14 wew, k discord, don't load messages
Want results from more Discord servers?
Add your server