'Why message.guild.me.permissions.has("X") returning me true

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



Solution 1:[1]

<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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Leau