@antiraid-ext/events/antiraid/ExecuteSetting
API reference for @antiraid-ext/events/antiraid/ExecuteSetting
@antiraid-ext/events/antiraid/ExecuteSetting
Functions
onExecuteSetting
Run a callback when the `AntiRaid.ExecuteSetting` event is triggered.
Function Signature
--- Run a callback when the \`AntiRaid.ExecuteSetting\` event is triggered.
--- @param event The event to listen for.
--- @param callback The callback to run when the event is triggered. The callback will receive the \`events.SettingExecuteEvent\` data.
--- @return data The data returned by the callback.
function onExecuteSetting(event: Primitives.Event, callback: (data: events.SettingExecuteEvent) -> any) end
Arguments
event
The event to listen for.
callback
The callback to run when the event is triggered. The callback will receive the `events.SettingExecuteEvent` data.
Function Signature
callback: (data: events.SettingExecuteEvent) -> any
Arguments
data
Returns
data
The data returned by the callback.
Last updated on