Package discord4j.core.object.entity
Class ForumTag
java.lang.Object
discord4j.core.object.entity.ForumTag
- All Implemented Interfaces:
DiscordObject
,Entity
-
Field Summary
Modifier and TypeFieldDescriptionprotected final GatewayDiscordClient
The gateway associated to this object. -
Constructor Summary
ConstructorDescriptionForumTag
(GatewayDiscordClient gateway, discord4j.discordjson.json.ForumTagData data) -
Method Summary
Modifier and TypeMethodDescriptionReturns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.ForumTagData
getData()
Gets the associatedForumTagData
wrapped by this objectGets the emoji id if this tag is represented as a custom guild emoji At least this field orgetEmojiName()
is present and filled.Gets the unicode emoji if this tag is represented as a unicode emoji At least this field orgetEmojiId()
is present and filled.getId()
Gets the Snowflake that uniquely identifies this entity.getName()
Gets the name for this tagboolean
Gets whether this tag is moderated, meaning only members with the MANAGE_THREADS permission can use it
-
Field Details
-
gateway
The gateway associated to this object.
-
-
Constructor Details
-
ForumTag
-
-
Method Details
-
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.
-
getId
Description copied from interface:Entity
Gets the Snowflake that uniquely identifies this entity. -
getName
Gets the name for this tag- Returns:
- The tag name
-
isModerated
public boolean isModerated()Gets whether this tag is moderated, meaning only members with the MANAGE_THREADS permission can use it- Returns:
true
if this tag is moderated
-
getEmojiId
Gets the emoji id if this tag is represented as a custom guild emoji At least this field orgetEmojiName()
is present and filled.- Returns:
- An
Optional
which may contain a custom guild emoji id.
-
getEmojiName
Gets the unicode emoji if this tag is represented as a unicode emoji At least this field orgetEmojiId()
is present and filled.- Returns:
- An
Optional
which may contain a custom guild emoji id.
-
getData
public discord4j.discordjson.json.ForumTagData getData()Gets the associatedForumTagData
wrapped by this object- Returns:
- the wrapped
ForumTagData
object
-