bothy-sdk
    Preparing search index...

    Function approvalCard

    • Builds the approval buttons of 09 11.5.

      The buttons are approval.once, approval.session, approval.always and approval.deny, all single use, so one decision disables the rest (09 11.3). Every button but deny requires approve_actions; always is for owners only, because it changes the runtime's lasting allow list for every future trigger; the others are for the run's starter. Send them with cardMessage or the outbox as a message with kind = card and the run's run_id.

      Parameters

      Returns {}[]

      The buttons in the order of the table.

      approvalCard({ withAlways: false }).map((c) => c.custom_id);
      // ["approval.once", "approval.session", "approval.deny"]