function writeDraft
writeDraft(
userId: string | undefined,
): void

Stores value as the draft of userId, or removes it when it has neither text nor a reply target. Does nothing when userId is undefined.

Parameters

userId: string | undefined

Return Type

void

Usage

import { writeDraft } from "src/utils/chat/draft.ts";