@antiraid-ext/framework/dispatch
API reference for @antiraid-ext/framework/dispatch
@antiraid-ext/framework/dispatch
Functions
_setupFrameworkBaseData
Function Signature
function _setupFrameworkBaseData(ctx: Primitives.TemplateContext, framework: coretypes.Framework) -> () end
Arguments
ctx
framework
dispatch
Dispatches an event to the framework.
This is the main entry point for the framework to handle events.
Currently, ``dispatch`` handles app commands, button callbacks and commands key expiration events.
@error If the framework is not set up before calling this function.
Function Signature
--- Dispatches an event to the framework.
---
--- This is the main entry point for the framework to handle events.
---
--- Currently, \`\`dispatch\`\` handles app commands, button callbacks and commands key expiration events.
---
--- @param evt Primitives.Event The event to dispatch.
--- @param ctx Primitives.TemplateContext The context to use for the event.
--- @return nil
--- @error If the framework is not set up before calling this function.
function dispatch(evt: Primitives.Event, ctx: Primitives.TemplateContext) -> any end
Arguments
evt
Primitives.Event The event to dispatch.
ctx
Primitives.TemplateContext The context to use for the event.
Returns
ret1
Last updated on