whatever i am writing inside message.guild.me.permissions.has
it returns me true
Why ?
for example :
message.guild.me.permissions.has("X") // true ??
i am using Discord.js v13
CodePudding user response:
<Permissions>.has
can takes two parameters, permission
and checkAdmin
to true by default to override permissions if the user is administrator.
If you want to check if the user has a permission even if he is administrator you can pass it to false:
message.guild.me.permissions.has('X', false) // false