Update permissions.ts

This commit is contained in:
Ayyan
2020-12-10 18:48:10 +04:00
committed by GitHub
parent a5f3c4fdf3
commit ef1df42840

View File

@@ -243,7 +243,7 @@ export async function higherRolePosition(
) {
const guild = await cacheHandlers.get("guilds", guildID);
if (!guild) return;
// If the bot is the owner of the guild, higher-role-checking is not necessary.
if (guild.ownerID === botID) return true;