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
-
Constructor Summary
ConstructorDescriptionChannelUpdateDefaultLayoutEvent
(JDA api, long responseNumber, Channel channel, ForumChannel.Layout oldValue, ForumChannel.Layout newValue) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent
getEntity, getPropertyIdentifier
Methods inherited from class net.dv8tion.jda.api.events.channel.GenericChannelEvent
getChannel, getChannelType, getGuild, isFromGuild, isFromType
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getRawData, getResponseNumber
Methods inherited from interface net.dv8tion.jda.api.events.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:GenericChannelUpdateEvent
TheChannel's
old value of the just updated field.- Specified by:
getOldValue
in interfaceUpdateEvent<Channel,
ForumChannel.Layout> - Overrides:
getOldValue
in classGenericChannelUpdateEvent<ForumChannel.Layout>
- Returns:
- The old value of the just updated field.
-
getNewValue
Description copied from class:GenericChannelUpdateEvent
TheChannel's
new value of the just updated field.- Specified by:
getNewValue
in interfaceUpdateEvent<Channel,
ForumChannel.Layout> - Overrides:
getNewValue
in classGenericChannelUpdateEvent<ForumChannel.Layout>
- Returns:
- The new value of the just updated field.
-