Interface BaseForumTag
- All Superinterfaces:
SerializableData
- All Known Subinterfaces:
ForumTag
- All Known Implementing Classes:
ForumTagData
Information describing a forum tag.
This is an abstraction used to simplify managing tags.
This is an abstraction used to simplify managing tags.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetEmoji()
The emoji used as the tag icon.getName()
The name of the tag.boolean
Whether this tag can only be applied by moderators with theMANAGE_THREADS
permission (aka Manage Posts).default DataObject
toData()
SerializedDataObject
for this object.
-
Method Details
-
getName
The name of the tag.- Returns:
- The name
-
isModerated
boolean isModerated()Whether this tag can only be applied by moderators with theMANAGE_THREADS
permission (aka Manage Posts).- Returns:
- True, if this tag can only be applied by moderators with the required permission
-
getEmoji
The emoji used as the tag icon.
For custom emoji, this will have an empty name andCustomEmoji.isAnimated()
is alwaysfalse
, due to discord chicanery.- Returns:
EmojiUnion
representing the tag emoji, or null if no emoji is applied.
-
toData
Description copied from interface:SerializableData
SerializedDataObject
for this object.- Specified by:
toData
in interfaceSerializableData
- Returns:
DataObject
-