public class UserUpdateEvent extends Event
This event is dispatched by Discord.
Constructor and Description |
---|
UserUpdateEvent(DiscordClient client,
User current,
User old) |
Modifier and Type | Method and Description |
---|---|
User |
getCurrent()
Gets the current, new version of the
User that has been updated in this event. |
Optional<User> |
getOld()
Gets the old version of the
User that has been updated in this event, if present. |
String |
toString() |
public UserUpdateEvent(DiscordClient client, User current, @Nullable User old)
public User getCurrent()
User
that has been updated in this event.User
updated in this event.public Optional<User> getOld()
User
that has been updated in this event, if present.
This may not be available if Users
are not stored.User
that has been updated in this event, if present.