writeDraft(userId: string | undefined,value: StoredDraft): 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.
value: StoredDraft
writeDraft(userId: string | undefined,value: StoredDraft): 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.
value: StoredDraft
import { writeDraft } from "src/utils/chat/draft.ts";