fix: if bot is guild owner, return true

This commit is contained in:
Ayyan
2020-12-09 10:27:06 +04:00
committed by GitHub
parent 307c75c91e
commit e16be8052c

View File

@@ -243,6 +243,8 @@ export async function higherRolePosition(
) {
const guild = await cacheHandlers.get("guilds", guildID);
if (!guild) return;
if (guild.ownerID === botID) return true;
const role = guild.roles.get(roleID);
const otherRole = guild.roles.get(otherRoleID);