Class ChannelUpdateDefaultLayoutEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.channel.GenericChannelEvent
net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent<ForumChannel.Layout>
net.dv8tion.jda.api.events.channel.update.ChannelUpdateDefaultLayoutEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<Channel, ForumChannel.Layout>
Indicates that the
default layout of a ForumChannel changed.
Can be used to retrieve the old default layout and the new one.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChannelUpdateDefaultLayoutEvent(JDA api, long responseNumber, Channel channel, ForumChannel.Layout oldValue, ForumChannel.Layout newValue) -
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
-
ChannelUpdateDefaultLayoutEvent
public ChannelUpdateDefaultLayoutEvent(@Nonnull JDA api, long responseNumber, @Nonnull Channel channel, @Nonnull ForumChannel.Layout oldValue, @Nonnull ForumChannel.Layout newValue)
-
-
Method Details
-
getOldValue
Description copied from class:GenericChannelUpdateEventTheChannel'sold value of the just updated field.- Specified by:
getOldValuein interfaceUpdateEvent<Channel, ForumChannel.Layout>- Overrides:
getOldValuein classGenericChannelUpdateEvent<ForumChannel.Layout>- 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, ForumChannel.Layout>- Overrides:
getNewValuein classGenericChannelUpdateEvent<ForumChannel.Layout>- Returns:
- The new value of the just updated field.
-