Class ScheduledEventUpdateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.guild.GuildEvent
discord4j.core.event.domain.guild.ScheduledEventUpdateEvent
-
Constructor Summary
ConstructorDescriptionScheduledEventUpdateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, ScheduledEvent current, ScheduledEvent old) -
Method Summary
Modifier and TypeMethodDescriptionReturn theScheduledEvent
associated with this update event.getGuild()
Requests to retrieve theGuild
where a scheduled event was updated.getOld()
Return the previousScheduledEvent
entity that was updated in this event.toString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
ScheduledEventUpdateEvent
public ScheduledEventUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ScheduledEvent current, @Nullable ScheduledEvent old)
-
-
Method Details
-
getCurrent
Return theScheduledEvent
associated with this update event.- Returns:
- an updated scheduled event
-
getOld
Return the previousScheduledEvent
entity that was updated in this event. May not be present if the entity is not stored.- Returns:
- a previous version of an updated scheduled event, if present
-
getGuildId
- Returns:
- the ID of the
Guild
.
-
getGuild
Requests to retrieve theGuild
where a scheduled event was updated. -
toString
-