Package net.dv8tion.jda.api.events.self
Class SelfUpdatePhoneNumberEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent<String>
-
- net.dv8tion.jda.api.events.self.SelfUpdatePhoneNumberEvent
-
- All Implemented Interfaces:
GenericEvent,UpdateEvent<SelfUser,String>
public class SelfUpdatePhoneNumberEvent extends GenericSelfUpdateEvent<String>
Indicates that the phone number associated with your account changed. (client-only)Can be used to retrieve the old phone number.
Identifier:
phone
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDENTIFIER
-
Constructor Summary
Constructors Constructor Description SelfUpdatePhoneNumberEvent(JDA api, long responseNumber, String oldPhoneNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNewPhoneNumber()The new phone number.StringgetOldPhoneNumber()The old phone number ornullif no phone number was previously set.-
Methods inherited from class net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent
getEntity, getNewValue, getOldValue, 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 String IDENTIFIER
- See Also:
- Constant Field Values
-
-