Class ApplicationCommandUpdateEvent


public class ApplicationCommandUpdateEvent extends ApplicationCommandEvent
Dispatched when an application command relevant to the current user is updated. This event is dispatched by Discord.
See Also:
  • Constructor Details

  • Method Details

    • getGuildId

      public Optional<Snowflake> getGuildId()
      Gets the Snowflake ID of the Guild involved in the event, if present.
      Returns:
      The ID of the guild involved, if present.
    • getGuild

      public Mono<Guild> getGuild()
      Requests to retrieve the Guild that had an application command 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.
    • getCommand

      public ApplicationCommand getCommand()
      Gets the command updated in this event.
      Returns:
      The command updated in this event.