UpdateEvent<SelfUser,java.lang.String>
public class SelfUpdatePhoneNumberEvent extends GenericSelfUpdateEvent<java.lang.String>
Can be used to retrieve the old phone number.
Identifier: phone
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
SelfUpdatePhoneNumberEvent(JDA api,
long responseNumber,
java.lang.String oldPhoneNumber) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getNewPhoneNumber() |
The new phone number.
|
java.lang.String |
getOldPhoneNumber() |
The old phone number or
null if no phone number was previously set. |
getJDA, getResponseNumber
getEntity, getNewValue, getOldValue, getPropertyIdentifier, getSelfUser, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public SelfUpdatePhoneNumberEvent(JDA api, long responseNumber, java.lang.String oldPhoneNumber)