mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
fix: if bot is guild owner, return true
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user