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.GatewayDiscordClient
getClient()
Returns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.RoleTagsData
getData()
Gets the data of the role tags.Optional<Snowflake>
getIntegrationId()
Gets the id of the integration this role belongs to, if present.boolean
isPremiumSubscriberRole()
Gets whether this is the guild's premium subscriber role.String
toString()
-
-
-
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:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated to this object.
-
-