Class ForumTagUpdateNameEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.channel.forum.GenericForumTagEvent
net.dv8tion.jda.api.events.channel.forum.update.GenericForumTagUpdateEvent<String>
net.dv8tion.jda.api.events.channel.forum.update.ForumTagUpdateNameEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<ForumTag,String>
Indicates that the
name of a ForumTag changed.
Requirements
This requires CacheFlag.FORUM_TAGS to be enabled.
JDABuilder.createLight(...) disables this by default.
Identifier: name
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForumTagUpdateNameEvent(JDA api, long responseNumber, IPostContainer channel, ForumTag tag, String previous) -
Method Summary
Modifier and TypeMethodDescriptionThe new valueThe old valueMethods inherited from class GenericForumTagUpdateEvent
getEntity, getPropertyIdentifierMethods inherited from class GenericForumTagEvent
getChannel, getTagMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
ForumTagUpdateNameEvent
public ForumTagUpdateNameEvent(@Nonnull JDA api, long responseNumber, @Nonnull IPostContainer channel, @Nonnull ForumTag tag, @Nonnull String previous)
-
-
Method Details
-
getOldName
-
getNewName
-
getOldValue
Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<ForumTag,String> - Overrides:
getOldValuein classGenericForumTagUpdateEvent<String>- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<ForumTag,String> - Overrides:
getNewValuein classGenericForumTagUpdateEvent<String>- Returns:
- The new value
-