UpdateEvent<Guild,Guild.VerificationLevel>public class GuildUpdateVerificationLevelEvent extends GenericGuildUpdateEvent<Guild.VerificationLevel>
VerificationLevel of a Guild changed.
Can be used to detect when a VerificationLevel changes and retrieve the old one
Identifier: verification_level
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
IDENTIFIER |
| Constructor | Description |
|---|---|
GuildUpdateVerificationLevelEvent(JDA api,
long responseNumber,
Guild guild,
Guild.VerificationLevel oldVerificationLevel) |
| Modifier and Type | Method | Description |
|---|---|---|
Guild.VerificationLevel |
getNewVerificationLevel() |
The new
VerificationLevel |
Guild.VerificationLevel |
getOldVerificationLevel() |
The old
VerificationLevel |
getJDA, getResponseNumbergetGuildgetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public GuildUpdateVerificationLevelEvent(JDA api, long responseNumber, Guild guild, Guild.VerificationLevel oldVerificationLevel)
public Guild.VerificationLevel getOldVerificationLevel()
VerificationLevelpublic Guild.VerificationLevel getNewVerificationLevel()
VerificationLevel