Class ScheduledEventUserRemoveEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.scheduledevent.GenericScheduledEventGatewayEvent
net.dv8tion.jda.api.events.guild.scheduledevent.GenericScheduledEventUserEvent
net.dv8tion.jda.api.events.guild.scheduledevent.ScheduledEventUserRemoveEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a
User
has unsubscribed from a ScheduledEvent
.
Can be used to detect when someone unsubscribed to an event and also retrieve their
User
object as well as the ScheduledEvent
.
Requirements
This event requires the SCHEDULED_EVENTS
intent and CacheFlag.SCHEDULED_EVENTS
to be enabled.
createDefault(String)
and
createLight(String)
disable this by default!
-
Constructor Summary
ConstructorDescriptionScheduledEventUserRemoveEvent
(JDA api, long responseNumber, ScheduledEvent scheduledEvent, long userId) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.scheduledevent.GenericScheduledEventUserEvent
getMember, getUser, getUserId, getUserIdLong, retrieveMember, retrieveUser
Methods inherited from class net.dv8tion.jda.api.events.guild.scheduledevent.GenericScheduledEventGatewayEvent
getScheduledEvent
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
-
ScheduledEventUserRemoveEvent
public ScheduledEventUserRemoveEvent(@Nonnull JDA api, long responseNumber, @Nonnull ScheduledEvent scheduledEvent, long userId)
-