public class UserUpdateEvent extends Event
This event is dispatched by Discord.
Constructor and Description |
---|
UserUpdateEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
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() |
getClient, getShardInfo
public UserUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, 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.