From ff4b19b60a23ca8c2430aaaa6989965f29972b94 Mon Sep 17 00:00:00 2001 From: Andrei Mihu Date: Fri, 1 Nov 2024 13:23:16 +0000 Subject: [PATCH] Add Auctions system OnCancel hook. --- auctions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auctions.go b/auctions.go index 310bbe8..d29a138 100644 --- a/auctions.go +++ b/auctions.go @@ -125,4 +125,7 @@ type AuctionsSystem interface { // SetOnClaimCreatedFailed sets a custom reward function which will run after a failed auction is claimed by the auction creator. SetOnClaimCreatedFailed(fn OnAuctionReward[*AuctionReward]) + + // SetOnCancel sets a custom reward function which will run after an auction is cancelled by the auction creator. + SetOnCancel(fn OnAuctionReward[*AuctionReward]) }