Package org.javacord.api.event.channel
Interface TextChannelEvent
-
- All Superinterfaces:
ChannelEvent,Event
- All Known Subinterfaces:
CachedMessagePinEvent,CachedMessageUnpinEvent,CertainMessageEvent,ChannelPinsUpdateEvent,MessageCreateEvent,MessageDeleteEvent,MessageEditEvent,MessageEvent,MessageReplyEvent,OptionalMessageEvent,ReactionAddEvent,ReactionEvent,ReactionRemoveAllEvent,ReactionRemoveEvent,RequestableMessageEvent,ServerTextChannelChangeDefaultAutoArchiveDurationEvent,ServerTextChannelChangeSlowmodeEvent,ServerTextChannelChangeTopicEvent,ServerTextChannelEvent,SingleReactionEvent,TextChannelUserEvent,UserStartTypingEvent,WebhooksUpdateEvent
public interface TextChannelEvent extends ChannelEvent
A text channel event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TextChannelgetChannel()Gets the channel of the event.default java.util.Optional<PrivateChannel>getPrivateChannel()Gets the channel of the event as a private channel.default java.util.Optional<ServerTextChannel>getServerTextChannel()Gets the channel of the event as a server text channel.default java.util.Optional<ServerThreadChannel>getServerThreadChannel()Gets the channel of the event as a server thread channel.
-
-
-
Method Detail
-
getChannel
TextChannel getChannel()
Description copied from interface:ChannelEventGets the channel of the event.- Specified by:
getChannelin interfaceChannelEvent- Returns:
- The channel of the event.
-
getServerTextChannel
default java.util.Optional<ServerTextChannel> getServerTextChannel()
Gets the channel of the event as a server text channel.- Returns:
- The channel of the event as a server text channel.
-
getServerThreadChannel
default java.util.Optional<ServerThreadChannel> getServerThreadChannel()
Gets the channel of the event as a server thread channel.- Returns:
- The channel of the event as a server thread channel.
-
getPrivateChannel
default java.util.Optional<PrivateChannel> getPrivateChannel()
Gets the channel of the event as a private channel.- Returns:
- The channel of the event as a private channel.
-
-