UpdateEvent<User,java.lang.String>
public class UserUpdateNameEvent extends GenericUserUpdateEvent<java.lang.String>
User
changed. (Not Nickname)
Can be used to retrieve the User who changed their username and their previous username.
Identifier: name
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
UserUpdateNameEvent(JDA api,
long responseNumber,
User user,
java.lang.String oldName) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getNewName() |
The new username
|
java.lang.String |
getOldName() |
The old username
|
getJDA, getResponseNumber
getUser
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER