Package discord4j.core.object
Class RoleTags
- java.lang.Object
-
- discord4j.core.object.RoleTags
-
- All Implemented Interfaces:
DiscordObject
public class RoleTags extends Object implements DiscordObject
- See Also:
- Role Tags Object
-
-
Constructor Summary
Constructors Constructor Description RoleTags(GatewayDiscordClient gateway, discord4j.discordjson.json.RoleTagsData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Snowflake>getBotId()Gets the id of the bot this role belongs to, if present.GatewayDiscordClientgetClient()Returns theGatewayDiscordClientthat created this object.discord4j.discordjson.json.RoleTagsDatagetData()Gets the data of the role tags.Optional<Snowflake>getIntegrationId()Gets the id of the integration this role belongs to, if present.booleanisPremiumSubscriberRole()Gets whether this is the guild's premium subscriber role.StringtoString()
-
-
-
Constructor Detail
-
RoleTags
public RoleTags(GatewayDiscordClient gateway, discord4j.discordjson.json.RoleTagsData data)
-
-
Method Detail
-
getData
public discord4j.discordjson.json.RoleTagsData getData()
Gets the data of the role tags.- Returns:
- The data of the role tags.
-
getBotId
public Optional<Snowflake> getBotId()
Gets the id of the bot this role belongs to, if present.- Returns:
- The id of the bot this role belongs to, if present.
-
getIntegrationId
public Optional<Snowflake> getIntegrationId()
Gets the id of the integration this role belongs to, if present.- Returns:
- The id of the integration this role belongs to, if present.
-
isPremiumSubscriberRole
public boolean isPremiumSubscriberRole()
Gets whether this is the guild's premium subscriber role.- Returns:
- Whether this is the guild's premium subscriber role.
-
getClient
public GatewayDiscordClient getClient()
Description copied from interface:DiscordObjectReturns theGatewayDiscordClientthat created this object. Methods in it are exclusively based on the entity cache orStorein use. Refer to callinggetClient().rest()to access aDiscordClientthat is capable of requesting entities directly from the REST API.- Specified by:
getClientin interfaceDiscordObject- Returns:
- The
GatewayDiscordClientassociated to this object.
-
-