Class ChannelUpdateDefaultSortOrderEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.channel.GenericChannelEvent
net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent<IPostContainer.SortOrder>
net.dv8tion.jda.api.events.channel.update.ChannelUpdateDefaultSortOrderEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<Channel, IPostContainer.SortOrder>
public class ChannelUpdateDefaultSortOrderEvent
extends GenericChannelUpdateEvent<IPostContainer.SortOrder>
Indicates that the
default sort order of a IPostContainer changed.
Can be used to retrieve the old default sort order and the new one.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChannelUpdateDefaultSortOrderEvent(JDA api, long responseNumber, IPostContainer channel, IPostContainer.SortOrder oldValue) -
Method Summary
Methods inherited from class GenericChannelUpdateEvent
getEntity, getPropertyIdentifierMethods inherited from class GenericChannelEvent
getChannel, getChannelType, getGuild, isFromGuild, isFromTypeMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
FIELD
-
IDENTIFIER
-
-
Constructor Details
-
ChannelUpdateDefaultSortOrderEvent
public ChannelUpdateDefaultSortOrderEvent(@Nonnull JDA api, long responseNumber, IPostContainer channel, IPostContainer.SortOrder oldValue)
-
-
Method Details
-
getOldValue
Description copied from class:GenericChannelUpdateEventTheChannel'sold value of the just updated field.- Specified by:
getOldValuein interfaceUpdateEvent<Channel, IPostContainer.SortOrder>- Overrides:
getOldValuein classGenericChannelUpdateEvent<IPostContainer.SortOrder>- Returns:
- The old value of the just updated field.
-
getNewValue
Description copied from class:GenericChannelUpdateEventTheChannel'snew value of the just updated field.- Specified by:
getNewValuein interfaceUpdateEvent<Channel, IPostContainer.SortOrder>- Overrides:
getNewValuein classGenericChannelUpdateEvent<IPostContainer.SortOrder>- Returns:
- The new value of the just updated field.
-