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