Skip to content

Commit

Permalink
feat: add delay property to CompanionRecordedAction with warning ab…
Browse files Browse the repository at this point in the history
…out lack of predictability
  • Loading branch information
Julusian committed Jul 7, 2024
1 parent 799fb67 commit 82d964c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/module-api/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ export interface CompanionRecordedAction {
/** The user selected options for the action */
options: CompanionOptionValues

/** Delay to give to this action */
// delay?: number
/**
* Delay to give to this action
* Note: it is currently not possible to know if the button is in absolute or relative delays mode, so the way this value will be interpreted is unpredictable.
* In the future, this will change. For now we advise using relative delays, as that is easier to reason about and will be easier for us to handle as a default.
*/
delay?: number
}

0 comments on commit 82d964c

Please sign in to comment.