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 Details

  • Method Details

    • getCurrent

      public ScheduledEvent getCurrent()
      Return the ScheduledEvent associated with this update event.
      Returns:
      an updated scheduled event
    • getOld

      public Optional<ScheduledEvent> getOld()
      Return the previous ScheduledEvent 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

      public Snowflake getGuildId()
      Gets the Snowflake ID of the Guild involved in the event.
      Returns:
      the ID of the Guild.
    • getGuild

      public Mono<Guild> getGuild()
      Requests to retrieve the Guild where a scheduled event was updated.
      Returns:
      a Mono where, upon successful completion, emits the Guild involved. If an error is received, it is emitted through the Mono.
    • toString

      public String toString()
      Overrides:
      toString in class Object