UpdateEvent<Guild,Guild.ExplicitContentLevel>public class GuildUpdateExplicitContentLevelEvent extends GenericGuildUpdateEvent<Guild.ExplicitContentLevel>
ExplicitContentLevel of a Guild changed.
Can be used to detect when an ExplicitContentLevel changes and retrieve the old one
Identifier: explicit_content_filter
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
IDENTIFIER |
| Constructor | Description |
|---|---|
GuildUpdateExplicitContentLevelEvent(JDA api,
long responseNumber,
Guild guild,
Guild.ExplicitContentLevel oldLevel) |
| Modifier and Type | Method | Description |
|---|---|---|
Guild.ExplicitContentLevel |
getNewLevel() |
The new
ExplicitContentLevel for the
Guild after to this event. |
Guild.ExplicitContentLevel |
getOldLevel() |
The old
ExplicitContentLevel for the
Guild prior to this event. |
getJDA, getResponseNumbergetGuildgetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public GuildUpdateExplicitContentLevelEvent(JDA api, long responseNumber, Guild guild, Guild.ExplicitContentLevel oldLevel)
public Guild.ExplicitContentLevel getOldLevel()
ExplicitContentLevel for the
Guild prior to this event.public Guild.ExplicitContentLevel getNewLevel()
ExplicitContentLevel for the
Guild after to this event.