Class ApplicationCommandPermissionUpdateEvent

java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.command.ApplicationCommandEvent
discord4j.core.event.domain.command.ApplicationCommandPermissionUpdateEvent

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

  • Method Details

    • getId

      public Snowflake getId()
      Gets unique id of the command.
      Returns:
      The unique id of the command.
    • getGuildId

      public Snowflake getGuildId()
      Gets the Snowflake ID of the Guild involved in the event.
      Returns:
      The ID of the guild involved.
    • 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.
    • getApplicationId

      public Snowflake getApplicationId()
      Gets the ID of the application the command belongs to.
      Returns:
      th ID of the application the command belongs to
    • getPermissions

      public List<ApplicationCommandPermission> getPermissions()
      Returns the permissions for the command in the guild.
      Returns:
      the permissions for the command in the guild.