F
dispatch
Sends a Flux action through Discord's dispatcher.
function dispatch<A extends FluxAction<string>>(action: A & FluxActionOf<A["type"]>): Promise<void>Parameters
| Name | Type | Description |
|---|---|---|
| action | A & FluxActionOf<A["type"]> | The action, with its |
Returns
Promise<void>A promise that settles once Discord's stores handled the action.