LogoAntiRaid

@antiraid-ext/events/antiraid/KeyResume

API reference for @antiraid-ext/events/antiraid/KeyResume

@antiraid-ext/events/antiraid/KeyResume

Functions

keyResume

Run a callback when the `AntiRaid.KeyResume` event is triggered (a key is resumed).

A key is resumed when it is set with the `resume` flag and the template is reloaded or the worker process restarted.

Function Signature
--- Run a callback when the \`AntiRaid.KeyResume\` event is triggered (a key is resumed).
---
--- A key is resumed when it is set with the \`resume\` flag and the template is reloaded or the worker process restarted.
--- @param event The event to listen for.
--- @param callback The callback to run when the event is triggered. The callback will receive a key resume event
function keyResume(event: Primitives.Event, callback: (events.KeyResumeEvent) -> ()) end

Arguments

event

The event to listen for.

Primitives.Event

callback

The callback to run when the event is triggered. The callback will receive a key resume event

Function Signature
callback: (events.KeyResumeEvent) -> ()

Arguments

arg1

events.KeyResumeEvent

Last updated on