UpdateEvent<TextChannel,java.lang.Boolean>
public class TextChannelUpdateNSFWEvent extends GenericTextChannelUpdateEvent<java.lang.Boolean>
TextChannel
's NSFW status changed.
Can be used to detect when a TextChannel NSFW status changes and get its previous value.
Identifier: nsfw
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
TextChannelUpdateNSFWEvent(JDA api,
long responseNumber,
TextChannel channel,
boolean oldNsfw) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
getOldNSFW() |
Whether the channel was marked NSFW before
|
getJDA, getResponseNumber
getChannel, getGuild
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public TextChannelUpdateNSFWEvent(JDA api, long responseNumber, TextChannel channel, boolean oldNsfw)