Class VoiceChannelUpdateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.channel.ChannelEvent
discord4j.core.event.domain.channel.VoiceChannelUpdateEvent
Dispatched when a
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.
- See Also:
-
Constructor Summary
ConstructorDescriptionVoiceChannelUpdateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, VoiceChannel current, VoiceChannel old) -
Method Summary
Modifier and TypeMethodDescriptionGets the current, new version of theVoiceChannel
that was updated in this event.getOld()
Gets the old version of theVoiceChannel
that was updated in this event, if present.toString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
VoiceChannelUpdateEvent
public VoiceChannelUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, VoiceChannel current, @Nullable VoiceChannel old)
-
-
Method Details
-
getCurrent
Gets the current, new version of theVoiceChannel
that was updated in this event.- Returns:
- The current version of the updated
VoiceChannel
.
-
getOld
Gets the old version of theVoiceChannel
that was updated in this event, if present. This may not be available ifVoiceChannels
are not stored.- Returns:
- The old version of the updated
VoiceChannel
, if present.
-
toString
-