Package org.javacord.api.event.channel
Interface TextChannelEvent
-
- All Superinterfaces:
ChannelEvent,Event
- All Known Subinterfaces:
CachedMessagePinEvent,CachedMessageUnpinEvent,CertainMessageEvent,ChannelPinsUpdateEvent,GroupChannelChangeNameEvent,GroupChannelCreateEvent,GroupChannelDeleteEvent,GroupChannelEvent,MessageCreateEvent,MessageDeleteEvent,MessageEditEvent,MessageEvent,OptionalMessageEvent,ReactionAddEvent,ReactionEvent,ReactionRemoveAllEvent,ReactionRemoveEvent,RequestableMessageEvent,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 Optional<GroupChannel>getGroupChannel()Gets the channel of the event as a group channel.default Optional<PrivateChannel>getPrivateChannel()Gets the channel of the event as a private channel.default Optional<ServerTextChannel>getServerTextChannel()Gets the channel of the event as a server text 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 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.
-
getPrivateChannel
default Optional<PrivateChannel> getPrivateChannel()
Gets the channel of the event as a private channel.- Returns:
- The channel of the event as a private channel.
-
getGroupChannel
default Optional<GroupChannel> getGroupChannel()
Gets the channel of the event as a group channel.- Returns:
- The channel of the event as a group channel.
-
-