Interface BaseForumTag

All Superinterfaces:
SerializableData
All Known Subinterfaces:
ForumTag
All Known Implementing Classes:
ForumTagData

public interface BaseForumTag extends SerializableData
Information describing a forum tag.
This is an abstraction used to simplify managing tags.
See Also:
  • Method Details

    • getName

      @Nonnull String getName()
      The name of the tag.
      Returns:
      The name
    • isModerated

      boolean isModerated()
      Whether this tag can only be applied by moderators with the MANAGE_THREADS permission (aka Manage Posts).
      Returns:
      True, if this tag can only be applied by moderators with the required permission
    • getEmoji

      @Nullable EmojiUnion getEmoji()
      The emoji used as the tag icon.
      For custom emoji, this will have an empty name and CustomEmoji.isAnimated() is always false, due to discord chicanery.
      Returns:
      EmojiUnion representing the tag emoji, or null if no emoji is applied.
    • toData

      @Nonnull default DataObject toData()
      Description copied from interface: SerializableData
      Serialized DataObject for this object.
      Specified by:
      toData in interface SerializableData
      Returns:
      DataObject