Class ChannelUpdateNSFWEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.channel.GenericChannelEvent
net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent<Boolean>
net.dv8tion.jda.api.events.channel.update.ChannelUpdateNSFWEvent
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Channel,
Boolean>
Indicates that a
Channels
nsfw state has been updated.
Can be used to retrieve the old nsfw state and the new one.
Limited to IAgeRestrictedChannels
(and implementations).
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChannelUpdateNSFWEvent
(JDA api, long responseNumber, Channel channel, Boolean oldValue, Boolean newValue) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent
getEntity, getNewValue, getOldValue, 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
-
ChannelUpdateNSFWEvent
-