Class ScheduledEventUpdateEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.guild.GuildEvent
-
- discord4j.core.event.domain.guild.ScheduledEventUpdateEvent
-
public class ScheduledEventUpdateEvent extends GuildEvent
-
-
Constructor Summary
Constructors Constructor Description ScheduledEventUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ScheduledEvent current, ScheduledEvent old)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledEvent
getCurrent()
Return theScheduledEvent
associated with this update event.Mono<Guild>
getGuild()
Requests to retrieve theGuild
where a scheduled event was updated.Snowflake
getGuildId()
Optional<ScheduledEvent>
getOld()
Return the previousScheduledEvent
entity that was updated in this event.String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
ScheduledEventUpdateEvent
public ScheduledEventUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ScheduledEvent current, @Nullable ScheduledEvent old)
-
-
Method Detail
-
getCurrent
public ScheduledEvent getCurrent()
Return theScheduledEvent
associated with this update event.- Returns:
- an updated scheduled event
-
getOld
public Optional<ScheduledEvent> 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
-
getGuild
public Mono<Guild> getGuild()
Requests to retrieve theGuild
where a scheduled event was updated.
-
-