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