how to check if your discord bot has permission code example
Example: check if bot has permission discord.js
//Check if my bot has permission ADMINISTRATOR
const guild = Client.guild.cache.get("GUILD_ID");
if(guild.me.hasPermission("ADMINISTRATOR")) {
console.log("I have the Permission Administrator");
}else {
console.log("I don't have Permission Administrator");
}