Skip to content

Commit 0a8d9a2

Browse files
committed
🚸 add isBooster methode in RoleUtil
1 parent ef61643 commit 0a8d9a2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/fr/ordinalteam/bot/api/utils/RoleUtil.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,8 @@ public static List<Role> getModsRole(final Guild guild) {
6464

6565
return roles;
6666
}
67+
68+
public static boolean isBooster(final Member member) {
69+
return member.getRoles().contains(member.getGuild().getRoleById(BOOSTER));
70+
}
6771
}

0 commit comments

Comments
 (0)