I
FluxActions
The payload of each Flux action, keyed by action type. Add your own with
declare module '@unbound-app/api/flux' { interface FluxActions { MY_ACTION: { id: string } } }.
interface FluxActionsMembers
CHANNEL_SELECT
{ channelId?: string; guildId?: string; messageId?: string }The user opened a channel; messageId is set when they jumped to a message.
CONNECTION_OPEN
{ user: FluxUser }The gateway connection is ready; user is the signed-in user.
MESSAGE_CREATE
{ channelId: string; guildId?: string; message: FluxMessage; optimistic: boolean }A message arrived or was sent; optimistic is true for the local copy before Discord confirms it.
MESSAGE_DELETE
{ channelId: string; guildId?: string; id: string }The message id in channelId was deleted.
MESSAGE_UPDATE
{ guildId?: string; message: FluxMessage }A message was edited, or Discord filled in its embeds.
TYPING_START
{ channelId: string; userId: string }A user started typing in a channel.
TYPING_STOP
{ channelId: string; userId: string }A user stopped typing in a channel.