Class ForumTagImpl
java.lang.Object
net.dv8tion.jda.internal.entities.ForumTagSnowflakeImpl
net.dv8tion.jda.internal.entities.ForumTagImpl
- All Implemented Interfaces:
Comparable<ForumTag>
,BaseForumTag
,ForumTag
,ForumTagSnowflake
,ISnowflake
,SerializableData
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.channel.forums.ForumTag
MAX_NAME_LENGTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmoji()
The emoji used as the tag icon.getName()
The name of the tag.int
The tag position, used for sorting.boolean
Whether this tag can only be applied by moderators with theMANAGE_THREADS
permission (aka Manage Posts).setEmoji
(DataObject json) setModerated
(boolean moderated) setPosition
(int position) toString()
Methods inherited from class net.dv8tion.jda.internal.entities.ForumTagSnowflakeImpl
equals, getIdLong, hashCode
Methods inherited from interface net.dv8tion.jda.api.entities.channel.forums.ForumTag
compareTo, toData
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Constructor Details
-
ForumTagImpl
public ForumTagImpl(long id)
-
-
Method Details
-
getPosition
public int getPosition()Description copied from interface:ForumTag
The tag position, used for sorting.- Specified by:
getPosition
in interfaceForumTag
- Returns:
- The tag position.
-
getName
Description copied from interface:BaseForumTag
The name of the tag.- Specified by:
getName
in interfaceBaseForumTag
- Returns:
- The name
-
isModerated
public boolean isModerated()Description copied from interface:BaseForumTag
Whether this tag can only be applied by moderators with theMANAGE_THREADS
permission (aka Manage Posts).- Specified by:
isModerated
in interfaceBaseForumTag
- Returns:
- True, if this tag can only be applied by moderators with the required permission
-
getEmoji
Description copied from interface:BaseForumTag
The emoji used as the tag icon.
For custom emoji, this will have an empty name andCustomEmoji.isAnimated()
is alwaysfalse
, due to discord chicanery.- Specified by:
getEmoji
in interfaceBaseForumTag
- Returns:
EmojiUnion
representing the tag emoji, or null if no emoji is applied.
-
setModerated
-
setName
-
setPosition
-
setEmoji
-
toString
- Overrides:
toString
in classForumTagSnowflakeImpl
-