Interface ApplicationCommandPermissionsUpdateEvent

  • All Superinterfaces:
    Event, ServerEvent

    public interface ApplicationCommandPermissionsUpdateEvent
    extends ServerEvent
    An application command permissions update event.
    • Method Detail

      • getApplicationId

        long getApplicationId()
        Gets the ID of the application whose command permissions were updated.
        Returns:
        The ID of the application updated.
      • getCommandId

        java.util.Optional<java.lang.Long> getCommandId()
        Gets the ID of the command whose permissions were updated. Returns an empty Optional if the permissions were updated for all commands.
        Returns:
        The ID of the command updated.
      • getUpdatedPermissions

        java.util.Set<ApplicationCommandPermissions> getUpdatedPermissions()
        Gets the updated permissions.
        Returns:
        The updated permissions.