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, getResponseNumber
getGuild
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public GuildUpdateVerificationLevelEvent(JDA api, long responseNumber, Guild guild, Guild.VerificationLevel oldVerificationLevel)
public Guild.VerificationLevel getOldVerificationLevel()
VerificationLevel
public Guild.VerificationLevel getNewVerificationLevel()
VerificationLevel