Class AutoModRuleEvent

java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.automod.AutoModRuleEvent
Direct Known Subclasses:
AutoModRuleCreateEvent, AutoModRuleDeleteEvent, AutoModRuleUpdateEvent

public class AutoModRuleEvent extends Event
Generic class related to AutoModRule events
  • Constructor Details

  • Method Details

    • 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 whose the entry was created.
      Returns:
      A Mono where, upon successful completion, emits the Guild involved. If an error is received, it is emitted through the Mono.