Files
wp-donations/includes/Overlay/ReplaySource.php
T
shadowdaoandClaude Sonnet 5.5 971a4ac482
Test and Release / test (push) Successful in 6m43s
Test and Release / release (push) Successful in 24s
Add Replay button to show a donation alert again
Donations > Replay queues the alert for the open alerts overlay. Requests
expire after 60 seconds, play once, and never re-apply totals, timers,
counters, rewards or tiers. Held, rejected and pending donations are excluded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:21:19 -08:00

20 lines
498 B
PHP

<?php
declare( strict_types=1 );
namespace StreamGoals\Overlay;
/** Optional capability: alerts the streamer asked to see again. */
interface ReplaySource {
/** @return array<int,array{seq:int,id:int}> Unexpired replay requests, oldest first. */
public function pendingReplays( int $now ): array;
/**
* The completed + approved donations among $ids, any age.
*
* @param int[] $ids
* @return array<int,array<string,mixed>>
*/
public function donationsByIds( array $ids ): array;
}