public class RoleUpdateEvent extends RoleEvent
The old role may not be present if roles are not stored.
This event is dispatched by Discord.
Constructor and Description |
---|
RoleUpdateEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
Role current,
Role old) |
Modifier and Type | Method and Description |
---|---|
Role |
getCurrent()
Gets the current, new version of the
Role that was updated in the event. |
Optional<Role> |
getOld()
Gets the old version of the
Role that was updated in this event. |
String |
toString() |
getClient, getShardInfo
public RoleUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, Role current, @Nullable Role old)
public Role getCurrent()
Role
that was updated in the event.Role
.public Optional<Role> getOld()
Role
that was updated in this event. if present.
This may not be available if Role
are not stored.Role
, if present.