Class ScheduledEventUpdateImageEvent
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.update.GenericScheduledEventUpdateEvent<String>
net.dv8tion.jda.api.events.guild.scheduledevent.update.ScheduledEventUpdateImageEvent
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<ScheduledEvent,
String>
Indicates the
image
of a ScheduledEvent
has changed.
Can be used to detect when the ScheduledEvent
image had changed.
Identifier: image
Requirements
This event requires the SCHEDULED_EVENTS
intent and CacheFlag.SCHEDULED_EVENTS
to be enabled.
createDefault(String)
and
createLight(String)
disable this by default!
Discord does not specifically tell us about the updates, but merely tells us the
ScheduledEvent
was updated and gives us the updated ScheduledEvent
object.
In order to fire a specific event like this we need to have the old ScheduledEvent
cached to compare against.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionScheduledEventUpdateImageEvent
(JDA api, long responseNumber, ScheduledEvent scheduledEvent, String previous) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.scheduledevent.update.GenericScheduledEventUpdateEvent
getEntity, getPropertyIdentifier, toString
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
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getRawData, getResponseNumber
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
ScheduledEventUpdateImageEvent
-
-
Method Details
-
getOldImageUrl
The oldimage
.- Returns:
- The old image
-
getNewImageUrl
The newimage
.- Returns:
- The new image
-
getOldValue
Description copied from interface:UpdateEvent
The old value- Specified by:
getOldValue
in interfaceUpdateEvent<ScheduledEvent,
String> - Overrides:
getOldValue
in classGenericScheduledEventUpdateEvent<String>
- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEvent
The new value- Specified by:
getNewValue
in interfaceUpdateEvent<ScheduledEvent,
String> - Overrides:
getNewValue
in classGenericScheduledEventUpdateEvent<String>
- Returns:
- The new value
-