Class ScheduledEventCreateEvent

java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.guild.GuildEvent
discord4j.core.event.domain.guild.ScheduledEventCreateEvent

public class ScheduledEventCreateEvent extends GuildEvent
Dispatched when a guild scheduled event is created.

This event is dispatched by Discord.

See Also:
  • Constructor Details

  • Method Details

    • getScheduledEvent

      public ScheduledEvent getScheduledEvent()
      Return the ScheduledEvent associated with this create event.
      Returns:
      a created scheduled event
    • 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 created.
      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