Hi there,
After reading the Twitch api for Twitch bits, I don’t see any API that currently exists that will show when the user currently opens the dialog for bits, BEFORE confirming/completed.
I do see OnTransactionComplete(Extensions Reference | Twitch Developers) and OnTransactionCalled (Extensions Reference | Twitch Developers)
But nothing for OnTransactionOpen… which could fire when the dialog box is open, but the user does not confirm nor cancel.
Reason:
In my case it would help with race conditions when something becomes available. Let’s say multiple dialogs are open, or multiple users open dialogs, and there is no way to track that, the so-called winner. The dialog simply opens when a UseBits API is called, but the event is not registered until after the user selects an option (confirm/cancel). Therefore multiple winners could open the dialog and there is nothing stopping that race condition.
The only way I can think of tracking this is by leveraging a backend when the UseBits function is called. However, this would require alot of unecc coding.
Is that an option somewhere that I am not seeing?