Class RoleImpl.RoleTagsImpl

java.lang.Object
net.dv8tion.jda.internal.entities.RoleImpl.RoleTagsImpl
All Implemented Interfaces:
Role.RoleTags
Enclosing class:
RoleImpl

public static class RoleImpl.RoleTagsImpl extends Object implements Role.RoleTags
  • Field Details

  • Constructor Details

    • RoleTagsImpl

      public RoleTagsImpl()
    • RoleTagsImpl

      public RoleTagsImpl(DataObject tags)
  • Method Details

    • isBot

      public boolean isBot()
      Description copied from interface: Role.RoleTags
      Whether this role is associated with a bot.
      Specified by:
      isBot in interface Role.RoleTags
      Returns:
      True, if this role is for a bot
    • getBotIdLong

      public long getBotIdLong()
      Description copied from interface: Role.RoleTags
      The id for the bot associated with this role.
      Specified by:
      getBotIdLong in interface Role.RoleTags
      Returns:
      The bot id, or 0 if this role is not for a bot
      See Also:
    • isBoost

      public boolean isBoost()
      Description copied from interface: Role.RoleTags
      Whether this role is the boost role of this guild.
      Specified by:
      isBoost in interface Role.RoleTags
      Returns:
      True, if this role is the boost role
    • isIntegration

      public boolean isIntegration()
      Description copied from interface: Role.RoleTags
      Whether this role is managed by an integration.
      This is usually true for roles such as those created for twitch subscribers.
      Specified by:
      isIntegration in interface Role.RoleTags
      Returns:
      True, if this role is managed by an integration
    • getIntegrationIdLong

      public long getIntegrationIdLong()
      Description copied from interface: Role.RoleTags
      The id for the integration associated with this role.
      Specified by:
      getIntegrationIdLong in interface Role.RoleTags
      Returns:
      The integration id, or 0 if this role is not for an integration
      See Also:
    • getSubscriptionIdLong

      public long getSubscriptionIdLong()
      Description copied from interface: Role.RoleTags
      The subscription listing id for this role. If a role has a subscription id then it is a premium role that can be acquired by users via purchase.
      Specified by:
      getSubscriptionIdLong in interface Role.RoleTags
      Returns:
      The listing id, or 0 if this role is not for a subscription listing
      See Also:
    • isAvailableForPurchase

      public boolean isAvailableForPurchase()
      Description copied from interface: Role.RoleTags
      Whether this role has been published for user purchasing. Only premium roles can be purchased. However, a premium role must be published before it can be purchased. Additionally, a premium role can be unpublished after it has been published. Doing so will make it no longer available for purchase but will not remove the role from users who have already purchased it.
      Specified by:
      isAvailableForPurchase in interface Role.RoleTags
      Returns:
      True, if this role is purchasable
      See Also:
    • isLinkedRole

      public boolean isLinkedRole()
      Description copied from interface: Role.RoleTags
      Whether this role is acquired through a user connection.
      Such as external services like twitter or reddit. This also includes custom third-party applications, such as those managed by bots via RoleConnectionMetadata.
      Specified by:
      isLinkedRole in interface Role.RoleTags
      Returns:
      True, if this role is acquired through a user connection
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object