Class GenericTextChannelEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.channel.text.GenericTextChannelEvent
-
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
GenericTextChannelUpdateEvent
,TextChannelCreateEvent
,TextChannelDeleteEvent
,TextChannelUpdatePermissionsEvent
public abstract class GenericTextChannelEvent extends Event
Indicates that aTextChannel
event was fired.
Every TextChannelEvent is an instance of this event and can be casted.Can be used to detect any TextChannelEvent.
-
-
Constructor Summary
Constructors Constructor Description GenericTextChannelEvent(JDA api, long responseNumber, TextChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextChannel
getChannel()
TheTextChannel
Guild
getGuild()
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GenericTextChannelEvent
public GenericTextChannelEvent(@Nonnull JDA api, long responseNumber, @Nonnull TextChannel channel)
-
-
Method Detail
-
getChannel
@Nonnull public TextChannel getChannel()
TheTextChannel
- Returns:
- The TextChannel
-
getGuild
@Nonnull public Guild getGuild()
- Returns:
- The Guild
-
-