Class RoleImpl.RoleTagsImpl
java.lang.Object
net.dv8tion.jda.internal.entities.RoleImpl.RoleTagsImpl
- All Implemented Interfaces:
Role.RoleTags
- Enclosing class:
RoleImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
The id for the bot associated with this role.long
The id for the integration associated with this role.long
The subscription listing id for this role.int
hashCode()
boolean
Whether this role has been published for user purchasing.boolean
isBoost()
Whether this role is the boost role of this guild.boolean
isBot()
Whether this role is associated with a bot.boolean
Whether this role is managed by an integration.boolean
Whether this role is acquired through a user connection.toString()
Methods inherited from interface net.dv8tion.jda.api.entities.Role.RoleTags
getBotId, getIntegrationId, getSubscriptionId, hasSubscriptionListing
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RoleTagsImpl
public RoleTagsImpl() -
RoleTagsImpl
-
-
Method Details
-
isBot
public boolean isBot()Description copied from interface:Role.RoleTags
Whether this role is associated with a bot.- Specified by:
isBot
in interfaceRole.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 interfaceRole.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 interfaceRole.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 interfaceRole.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 interfaceRole.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 interfaceRole.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. Onlypremium 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 interfaceRole.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 viaRoleConnectionMetadata
.- Specified by:
isLinkedRole
in interfaceRole.RoleTags
- Returns:
- True, if this role is acquired through a user connection
- See Also:
-
hashCode
public int hashCode() -
equals
-
toString
-