diff --git a/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/services/discord/InteractionRole.java b/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/services/discord/InteractionRole.java index ca1122f15..982369258 100644 --- a/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/services/discord/InteractionRole.java +++ b/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/services/discord/InteractionRole.java @@ -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. diff --git a/EssentialsDiscord/src/main/java/net/essentialsx/discord/interactions/InteractionRoleImpl.java b/EssentialsDiscord/src/main/java/net/essentialsx/discord/interactions/InteractionRoleImpl.java index ca3ac9bbb..bec62cdbf 100644 --- a/EssentialsDiscord/src/main/java/net/essentialsx/discord/interactions/InteractionRoleImpl.java +++ b/EssentialsDiscord/src/main/java/net/essentialsx/discord/interactions/InteractionRoleImpl.java @@ -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();