Class GenericTextChannelEvent
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.channel.text.GenericTextChannelEvent
-
- 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.core.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GenericTextChannelEvent
public GenericTextChannelEvent(JDA api, long responseNumber, TextChannel channel)
-
-
Method Detail
-
getChannel
public TextChannel getChannel()
TheTextChannel
- Returns:
- The TextChannel
-
getGuild
public Guild getGuild()
- Returns:
- The Guild
-
-