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:
- Discord
-
-
Constructor Summary
Constructors Constructor Description ScheduledEventCreateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ScheduledEvent scheduledEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<Guild>
getGuild()
Requests to retrieve theGuild
where a scheduled event was created.Snowflake
getGuildId()
ScheduledEvent
getScheduledEvent()
Return theScheduledEvent
associated with this create event.String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
ScheduledEventCreateEvent
public ScheduledEventCreateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ScheduledEvent scheduledEvent)
-
-
Method Detail
-
getScheduledEvent
public ScheduledEvent getScheduledEvent()
Return theScheduledEvent
associated with this create event.- Returns:
- a created scheduled event
-
getGuild
public Mono<Guild> getGuild()
Requests to retrieve theGuild
where a scheduled event was created.
-
-