Class ScheduledEventUserRemoveEvent


  • public class ScheduledEventUserRemoveEvent
    extends GuildEvent
    Dispatched when a user has unsubscribed from a guild scheduled event.

    This event is dispatched by Discord.

    See Also:
    Discord
    • Constructor Detail

      • ScheduledEventUserRemoveEvent

        public ScheduledEventUserRemoveEvent​(GatewayDiscordClient gateway,
                                             ShardInfo shardInfo,
                                             long guildId,
                                             long scheduledEventId,
                                             long userId)
    • Method Detail

      • getGuildId

        public Snowflake getGuildId()
        Return the guild ID of the scheduled event.
        Returns:
        a guild snowflake
      • getGuild

        public Mono<Guild> getGuild()
        Return the guild of the scheduled event.
        Returns:
        a Mono where, upon successful completion, emits the Guild involved. If an error is received, it is emitted through the Mono.
      • getScheduledEventId

        public Snowflake getScheduledEventId()
        Return the scheduled event ID.
        Returns:
        a scheduled event snowflake
      • getScheduledEvent

        public Mono<ScheduledEvent> getScheduledEvent()
        Return the scheduled event.
        Returns:
        a Mono where, upon successful completion, emits the ScheduledEvent involved. If an error is received, it is emitted through the Mono.
      • getUserId

        public Snowflake getUserId()
        Return the unsubscribing user ID.
        Returns:
        a user snowflake
      • getUser

        public Mono<User> getUser()
        Return the unsubscribing user.
        Returns:
        a Mono where, upon successful completion, emits the User involved. If an error is received, it is emitted through the Mono.
      • getMember

        public Mono<Member> getMember()
        Return the unsubscribing guild Member.
        Returns:
        a Mono where, upon successful completion, emits the Member involved. If an error is received, it is emitted through the Mono.