public class RoleTags extends Object implements DiscordObject
Constructor and Description |
---|
RoleTags(GatewayDiscordClient gateway,
discord4j.discordjson.json.RoleTagsData data) |
Modifier and Type | Method and Description |
---|---|
Optional<Snowflake> |
getBotId()
Gets the id of the bot this role belongs to, if present.
|
GatewayDiscordClient |
getClient()
Returns the
GatewayDiscordClient that created this object. |
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() |
public RoleTags(GatewayDiscordClient gateway, discord4j.discordjson.json.RoleTagsData data)
public Optional<Snowflake> getBotId()
public Optional<Snowflake> getIntegrationId()
public boolean isPremiumSubscriberRole()
public GatewayDiscordClient getClient()
DiscordObject
GatewayDiscordClient
that created this object. Methods in it are exclusively based on the
entity cache or Store
in use. Refer to calling getClient().rest()
to access a
DiscordClient
that is capable of requesting entities directly from the REST API.getClient
in interface DiscordObject
GatewayDiscordClient
associated to this object.