Class WebhooksUpdateEvent


  • public class WebhooksUpdateEvent
    extends Event
    Dispatched when a webhook is updated in a guild.

    Discord does not send any information about what was actually updated. This is simply a notification of SOME update.

    This event is dispatched by Discord.

    See Also:
    Webhooks Update
    • Constructor Detail

    • Method Detail

      • getGuildId

        public Snowflake getGuildId()
        Gets the Snowflake ID of the guild that had a webhook updated in this event.
        Returns:
        The ID of the guild involved.
      • getGuild

        public Mono<Guild> getGuild()
        Requests to retrieve the Guild that had a webhook updated in this event.
        Returns:
        A Mono where, upon successful completion, emits the Guild involved in the event. If an error is received, it is emitted through the Mono.
      • getChannelId

        public Snowflake getChannelId()
        Gets the Snowflake ID of the channel the webhook belongs to.
        Returns:
        The ID of the channel involved.
      • getChannel

        public Mono<TextChannel> getChannel()
        Requests to retrieve the TextChannel the webhook belongs to.
        Returns:
        A Mono where, upon successful completion, emits the TextChannel involved in the event. If an error is received, it is emitted through the Mono.