Class VoiceChannelCreateEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.channel.ChannelEvent
-
- discord4j.core.event.domain.channel.VoiceChannelCreateEvent
-
public class VoiceChannelCreateEvent extends ChannelEvent
Dispatched when aVoiceChannelis created in a guild.This event is dispatched by Discord.
- See Also:
- Channel Create
-
-
Constructor Summary
Constructors Constructor Description VoiceChannelCreateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, VoiceChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoiceChannelgetChannel()Gets theVoiceChannelthat was created in this event.StringtoString()-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
VoiceChannelCreateEvent
public VoiceChannelCreateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, VoiceChannel channel)
-
-
Method Detail
-
getChannel
public VoiceChannel getChannel()
Gets theVoiceChannelthat was created in this event.- Returns:
- The newly created
VoiceChannel.
-
-