mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-21 01:01:35 +08:00
Add InteractionRole#isPublicRole
This commit is contained in:
parent
80bbf8c55b
commit
939e5c5a55
@ -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.
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user