Class GenericChannelUpdateEvent<T>
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.channel.GenericChannelEvent
net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent<T>
- Type Parameters:
T
- The value type of the field that has been updated.
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Channel,
T>
- Direct Known Subclasses:
ChannelUpdateAppliedTagsEvent
,ChannelUpdateArchivedEvent
,ChannelUpdateArchiveTimestampEvent
,ChannelUpdateAutoArchiveDurationEvent
,ChannelUpdateBitrateEvent
,ChannelUpdateDefaultLayoutEvent
,ChannelUpdateDefaultReactionEvent
,ChannelUpdateDefaultSortOrderEvent
,ChannelUpdateDefaultThreadSlowmodeEvent
,ChannelUpdateFlagsEvent
,ChannelUpdateInvitableEvent
,ChannelUpdateLockedEvent
,ChannelUpdateNameEvent
,ChannelUpdateNSFWEvent
,ChannelUpdateParentEvent
,ChannelUpdatePositionEvent
,ChannelUpdateRegionEvent
,ChannelUpdateSlowmodeEvent
,ChannelUpdateTopicEvent
,ChannelUpdateTypeEvent
,ChannelUpdateUserLimitEvent
,ChannelUpdateVoiceStatusEvent
public class GenericChannelUpdateEvent<T>
extends GenericChannelEvent
implements UpdateEvent<Channel,T>
Top-level channel update event type indicating that a field of a
All channel update events JDA fires are derived from this class.
Channel
was updated.
All channel update events JDA fires are derived from this class.
- See Also:
-
Constructor Summary
ConstructorDescriptionGenericChannelUpdateEvent
(JDA api, long responseNumber, Channel channel, ChannelField channelField, T oldValue, T newValue) -
Method Summary
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
-
Constructor Details
-
GenericChannelUpdateEvent
-
-
Method Details
-
getPropertyIdentifier
The identifier of theChannel's
field that has just been updated.- Specified by:
getPropertyIdentifier
in interfaceUpdateEvent<Channel,
T> - Returns:
- The identifier of the
Channel's
field that has just been updated.
-
getEntity
- Specified by:
getEntity
in interfaceUpdateEvent<Channel,
T> - Returns:
- The
Channel
entity affected by this update event.
-
getOldValue
TheChannel's
old value of the just updated field.- Specified by:
getOldValue
in interfaceUpdateEvent<Channel,
T> - Returns:
- The old value of the just updated field.
-
getNewValue
TheChannel's
new value of the just updated field.- Specified by:
getNewValue
in interfaceUpdateEvent<Channel,
T> - Returns:
- The new value of the just updated field.
-