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