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