Class InteractionRoleImpl
java.lang.Object
net.essentialsx.discord.interactions.InteractionRoleImpl
- All Implemented Interfaces:
InteractionRole
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether this role can be given to other members by the current logged in bot.Gets the mention of this role.int
Gets the raw RGB color value of this role.getId()
Gets the ID of this role.net.dv8tion.jda.api.entities.Role
getName()
Gets the name of this role.boolean
Whether this role's color is the default one (has no color).boolean
Whether this role is managed by an external integration.boolean
Whether this role is the default role given to all users (@everyone).toString()
-
Constructor Details
-
InteractionRoleImpl
public InteractionRoleImpl(net.dv8tion.jda.api.entities.Role role)
-
-
Method Details
-
getName
Description copied from interface:InteractionRole
Gets the name of this role.- Specified by:
getName
in interfaceInteractionRole
- Returns:
- this role's name.
-
getAsMention
Description copied from interface:InteractionRole
Gets the mention of this role.- Specified by:
getAsMention
in interfaceInteractionRole
- Returns:
- this role's mention.
-
isManaged
public boolean isManaged()Description copied from interface:InteractionRole
Whether this role is managed by an external integration.- Specified by:
isManaged
in interfaceInteractionRole
- Returns:
- true if the role is managed.
-
isPublicRole
public boolean isPublicRole()Description copied from interface:InteractionRole
Whether this role is the default role given to all users (@everyone).- Specified by:
isPublicRole
in interfaceInteractionRole
- Returns:
- true if this is the default role.
-
getColorRaw
public int getColorRaw()Description copied from interface:InteractionRole
Gets the raw RGB color value of this role.- Specified by:
getColorRaw
in interfaceInteractionRole
- Returns:
- this role's color value.
-
isDefaultColor
public boolean isDefaultColor()Description copied from interface:InteractionRole
Whether this role's color is the default one (has no color).- Specified by:
isDefaultColor
in interfaceInteractionRole
- Returns:
- true if the role has no color.
-
canInteract
public boolean canInteract()Description copied from interface:InteractionRole
Whether this role can be given to other members by the current logged in bot.- Specified by:
canInteract
in interfaceInteractionRole
- Returns:
- true if this role can be interacted with by the current bot user.
-
getJdaObject
public net.dv8tion.jda.api.entities.Role getJdaObject() -
getId
Description copied from interface:InteractionRole
Gets the ID of this role.- Specified by:
getId
in interfaceInteractionRole
- Returns:
- this role's ID.
-
toString
-