Class GenericScheduledEventGatewayEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.scheduledevent.GenericScheduledEventGatewayEvent
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
GenericScheduledEventUpdateEvent
,GenericScheduledEventUserEvent
,ScheduledEventCreateEvent
,ScheduledEventDeleteEvent
Indicates that a gateway event relating to a
ScheduledEvent
has been fired.
It should be noted that a ScheduledEvent
is not an
actual gateway event found in the net.dv8tion.jda.api.events
package, but are rather entities similar to
User
or TextChannel
objects
representing a scheduled event.
Requirements
These events require the SCHEDULED_EVENTS
intent and CacheFlag.SCHEDULED_EVENTS
to be enabled.
createDefault(String)
and
createLight(String)
disable this by default!
This class may be used to check if a gateway event is related to a ScheduledEvent
as all gateway events in the net.dv8tion.jda.api.events.guild.scheduledevent
package extend this class.
-
Constructor Summary
ConstructorDescriptionGenericScheduledEventGatewayEvent
(JDA api, long responseNumber, ScheduledEvent scheduledEvent) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GenericScheduledEventGatewayEvent
public GenericScheduledEventGatewayEvent(@Nonnull JDA api, long responseNumber, @Nonnull ScheduledEvent scheduledEvent)
-
-
Method Details
-
getScheduledEvent
TheScheduledEvent
- Returns:
- The Scheduled Event
-