diff --git a/src/utils/permissions.ts b/src/utils/permissions.ts index 1623c6451..fc2c86069 100644 --- a/src/utils/permissions.ts +++ b/src/utils/permissions.ts @@ -55,6 +55,9 @@ export async function botHasPermission( const guild = await cacheHandlers.get("guilds", guildID); if (!guild) return false; + // Check if the bot is the owner of the guild, if it is, returns true + if (guild.ownerID === botID) return true; + const member = guild.members.get(botID); if (!member) return false;