@antiraid-ext/events/antiraid/KeyExpiry
API reference for @antiraid-ext/events/antiraid/KeyExpiry
@antiraid-ext/events/antiraid/KeyExpiry
Functions
onKeyExpiry
Run a callback when the `AntiRaid.KeyExpiry` event is triggered (a key is expired).
Function Signature
--- Run a callback when the \`AntiRaid.KeyExpiry\` event is triggered (a key is expired).
--- @param event The event to listen for.
--- @param callback The callback to run when the event is triggered. The callback will receive the \`events.KeyExpiryEvent\` data.
function onKeyExpiry(event: Primitives.Event, callback: (data: events.KeyExpiryEvent) -> ()) end
Arguments
event
The event to listen for.
callback
The callback to run when the event is triggered. The callback will receive the `events.KeyExpiryEvent` data.
Function Signature
callback: (data: events.KeyExpiryEvent) -> ()
Arguments
data
Last updated on