F

dispatch

Sends a Flux action through Discord's dispatcher.

function dispatch<A extends FluxAction<string>>(action: A & FluxActionOf<A["type"]>): Promise<void>

Parameters

NameTypeDescription
actionA & FluxActionOf<A["type"]>

The action, with its type and payload.

Returns

Promise<void>

A promise that settles once Discord's stores handled the action.