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, getResponseNumbergetChannel, getGuildgetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public TextChannelUpdateNSFWEvent(JDA api, long responseNumber, TextChannel channel, boolean oldNsfw)