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.booleanWhether this tag can only be applied by moderators with theMANAGE_THREADSpermission (aka Manage Posts).default DataObjecttoData()SerializedDataObjectfor 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_THREADSpermission (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:
EmojiUnionrepresenting the tag emoji, or null if no emoji is applied.
-
toData
Description copied from interface:SerializableDataSerializedDataObjectfor this object.- Specified by:
toDatain interfaceSerializableData- Returns:
DataObject
-