Class ChannelUpdateFlagsEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.channel.GenericChannelEvent
net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent<EnumSet<ChannelFlag>>
net.dv8tion.jda.api.events.channel.update.ChannelUpdateFlagsEvent
- All Implemented Interfaces:
GenericEvent,UpdateEvent<Channel,EnumSet<ChannelFlag>>
Indicates that the
flags of a Channel changed.
Can be used to retrieve the old flags and the new ones.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChannelUpdateFlagsEvent(JDA api, long responseNumber, Channel channel, EnumSet<ChannelFlag> oldValue, EnumSet<ChannelFlag> newValue) -
Method Summary
Modifier and TypeMethodDescriptionThe new valueThe old valueMethods inherited from class net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent
getEntity, getPropertyIdentifierMethods inherited from class net.dv8tion.jda.api.events.channel.GenericChannelEvent
getChannel, getChannelType, getGuild, isFromGuild, isFromTypeMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumberMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Constructor Details
-
ChannelUpdateFlagsEvent
public ChannelUpdateFlagsEvent(@Nonnull JDA api, long responseNumber, @Nonnull Channel channel, @Nonnull EnumSet<ChannelFlag> oldValue, @Nonnull EnumSet<ChannelFlag> newValue)
-
-
Method Details
-
getOldValue
Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<Channel,EnumSet<ChannelFlag>> - Overrides:
getOldValuein classGenericChannelUpdateEvent<EnumSet<ChannelFlag>>- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<Channel,EnumSet<ChannelFlag>> - Overrides:
getNewValuein classGenericChannelUpdateEvent<EnumSet<ChannelFlag>>- Returns:
- The new value
-