Add InteractionRole#isPublicRole

This commit is contained in:
Josh Roy 2021-08-04 11:43:49 -04:00 committed by MD
parent 80bbf8c55b
commit 939e5c5a55
2 changed files with 13 additions and 2 deletions

View File

@ -11,11 +11,17 @@ public interface InteractionRole {
String getName();
/**
* Whether this role is mentionable.
* @return true if the role is mentionable.
* Whether this role is managed by an external integration.
* @return true if the role is managed.
*/
boolean isManaged();
/**
* Whether this role is the default role given to all users (@everyone).
* @return true if this is the default role.
*/
boolean isPublicRole();
/**
* Gets the raw RGB color value of this role.
* @return this role's color value.

View File

@ -20,6 +20,11 @@ public class InteractionRoleImpl implements InteractionRole {
return role.isManaged();
}
@Override
public boolean isPublicRole() {
return role.isPublicRole();
}
@Override
public int getColorRaw() {
return role.getColorRaw();