Package net.dv8tion.jda.api.events.self
Class SelfUpdateVerifiedEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent<java.lang.Boolean>
-
- net.dv8tion.jda.api.events.self.SelfUpdateVerifiedEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<SelfUser,java.lang.Boolean>
public class SelfUpdateVerifiedEvent extends GenericSelfUpdateEvent<java.lang.Boolean>
Indicates that the verification state of the current user changed. (client-only)Can be used to retrieve the old verification state.
Identifier:
verified
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description SelfUpdateVerifiedEvent(JDA api, long responseNumber, boolean wasVerified)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getNewValue()
The new valuejava.lang.Boolean
getOldValue()
The old valueboolean
wasVerified()
Whether the account was verified-
Methods inherited from class net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent
getEntity, getPropertyIdentifier, getSelfUser, toString
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SelfUpdateVerifiedEvent
public SelfUpdateVerifiedEvent(@Nonnull JDA api, long responseNumber, boolean wasVerified)
-
-
Method Detail
-
wasVerified
public boolean wasVerified()
Whether the account was verified- Returns:
- True, if this account was previously verified
-
getOldValue
@Nonnull public java.lang.Boolean getOldValue()
Description copied from interface:UpdateEvent
The old value- Specified by:
getOldValue
in interfaceUpdateEvent<SelfUser,java.lang.Boolean>
- Overrides:
getOldValue
in classGenericSelfUpdateEvent<java.lang.Boolean>
- Returns:
- The old value
-
getNewValue
@Nonnull public java.lang.Boolean getNewValue()
Description copied from interface:UpdateEvent
The new value- Specified by:
getNewValue
in interfaceUpdateEvent<SelfUser,java.lang.Boolean>
- Overrides:
getNewValue
in classGenericSelfUpdateEvent<java.lang.Boolean>
- Returns:
- The new value
-
-