From 0d8da15a37c9c4e9f1ed95b5d87a4533a8cf6748 Mon Sep 17 00:00:00 2001 From: test Date: Fri, 25 Oct 2024 13:50:56 +1100 Subject: [PATCH] Update Roles.java --- src/main/java/link/locutus/discord/user/Roles.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/link/locutus/discord/user/Roles.java b/src/main/java/link/locutus/discord/user/Roles.java index 1561f835..4c4a5328 100644 --- a/src/main/java/link/locutus/discord/user/Roles.java +++ b/src/main/java/link/locutus/discord/user/Roles.java @@ -365,8 +365,8 @@ public boolean has(Member member, int alliance) { public boolean has(Member member) { if (member == null) return false; if (member.getIdLong() == Locutus.loader().getAdminUserId()) return true; - if (member.isOwner()) return true; + if (member.hasPermission(Permission.ADMINISTRATOR)) return true; GuildDB db = Locutus.imp().getGuildDB(member.getGuild()); List roles = member.getRoles();