Class GenericThreadEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.thread.GenericThreadEvent
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
GenericThreadMemberEvent,ThreadHiddenEvent,ThreadRevealedEvent
Top-level thread event type
All thread events JDA fires are derived from this class.
All thread events JDA fires are derived from this class.
Can be used to check if an Object is a JDA event in EventListener implementations to distinguish what event is being fired.
Adapter implementation: ListenerAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGuild()TheGuildcontaining theThreadChannel.The event relatedThreadChannelobjectMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GenericThreadEvent
-
-
Method Details
-
getThread
The event relatedThreadChannelobject- Returns:
- The event related
ThreadChannelobject
-
getGuild
TheGuildcontaining theThreadChannel.- Returns:
- The
Guildcontaining theThreadChannel.
-