Class SelfUpdateVerifiedEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent<Boolean>
net.dv8tion.jda.api.events.self.SelfUpdateVerifiedEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<SelfUser,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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe new valueThe old valuebooleanWhether the account was verifiedMethods inherited from class GenericSelfUpdateEvent
getEntity, getPropertyIdentifier, getSelfUserMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
SelfUpdateVerifiedEvent
-
-
Method Details
-
wasVerified
public boolean wasVerified()Whether the account was verified- Returns:
- True, if this account was previously verified
-
getOldValue
Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<SelfUser,Boolean> - Overrides:
getOldValuein classGenericSelfUpdateEvent<Boolean>- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<SelfUser,Boolean> - Overrides:
getNewValuein classGenericSelfUpdateEvent<Boolean>- Returns:
- The new value
-