public class GuildUpdateEvent extends GuildEvent
The old guild may not be present if guilds are not stored.
This event is Dispatched by Discord.
Constructor and Description |
---|
GuildUpdateEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
Guild current,
Guild old) |
Modifier and Type | Method and Description |
---|---|
Guild |
getCurrent()
Gets the current version of the
Guild involved in this event. |
Optional<Guild> |
getOld()
Gets the old version of the
Guild involved in this event, if present. |
String |
toString() |
getClient, getShardInfo
public GuildUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, Guild current, @Nullable Guild old)
public Guild getCurrent()
Guild
involved in this event.Guild
involved in this event.public Optional<Guild> getOld()
Guild
involved in this event, if present.
This may not be available if Guild
are not stored.Guild
involved in this event, if present.