Class InteractionRoleImpl

java.lang.Object
net.essentialsx.discord.interactions.InteractionRoleImpl
All Implemented Interfaces:
InteractionRole

public class InteractionRoleImpl extends Object implements InteractionRole
  • Constructor Details

    • InteractionRoleImpl

      public InteractionRoleImpl(net.dv8tion.jda.api.entities.Role role)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: InteractionRole
      Gets the name of this role.
      Specified by:
      getName in interface InteractionRole
      Returns:
      this role's name.
    • getAsMention

      public String getAsMention()
      Description copied from interface: InteractionRole
      Gets the mention of this role.
      Specified by:
      getAsMention in interface InteractionRole
      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 interface InteractionRole
      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 interface InteractionRole
      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 interface InteractionRole
      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 interface InteractionRole
      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 interface InteractionRole
      Returns:
      true if this role can be interacted with by the current bot user.
    • getJdaObject

      public net.dv8tion.jda.api.entities.Role getJdaObject()
    • getId

      public String getId()
      Description copied from interface: InteractionRole
      Gets the ID of this role.
      Specified by:
      getId in interface InteractionRole
      Returns:
      this role's ID.
    • toString

      public String toString()
      Overrides:
      toString in class Object