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
-
Method Summary
Modifier and TypeMethodDescriptiongetGuild()
TheGuild
containing theThreadChannel
.The event relatedThreadChannel
objectMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GenericThreadEvent
-
-
Method Details
-
getThread
The event relatedThreadChannel
object- Returns:
- The event related
ThreadChannel
object
-
getGuild
TheGuild
containing theThreadChannel
.- Returns:
- The
Guild
containing theThreadChannel
.
-