Class TextChannelUpdateNSFWEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.channel.text.GenericTextChannelEvent
-
- net.dv8tion.jda.api.events.channel.text.update.GenericTextChannelUpdateEvent<java.lang.Boolean>
-
- net.dv8tion.jda.api.events.channel.text.update.TextChannelUpdateNSFWEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<TextChannel,java.lang.Boolean>
public class TextChannelUpdateNSFWEvent extends GenericTextChannelUpdateEvent<java.lang.Boolean>
Indicates that aTextChannel
's NSFW status changed.Can be used to detect when a TextChannel NSFW status changes and get its previous value.
Identifier:
nsfw
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description TextChannelUpdateNSFWEvent(JDA api, long responseNumber, TextChannel channel, boolean oldNsfw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getNewNSFW()
Whether the channel was marked NSFW beforeboolean
getOldNSFW()
Whether the channel was marked NSFW before-
Methods inherited from class net.dv8tion.jda.api.events.channel.text.update.GenericTextChannelUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
-
Methods inherited from class net.dv8tion.jda.api.events.channel.text.GenericTextChannelEvent
getChannel, getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
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, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TextChannelUpdateNSFWEvent
public TextChannelUpdateNSFWEvent(@Nonnull JDA api, long responseNumber, @Nonnull TextChannel channel, boolean oldNsfw)
-
-