mirror of https://github.com/openclaw/openclaw.git
10 lines
375 B
TypeScript
10 lines
375 B
TypeScript
import { Routes } from "discord-api-types/v10";
|
|
import { resolveDiscordRest } from "./client.js";
|
|
import type { DiscordReactOpts } from "./send.types.js";
|
|
|
|
export async function sendTypingDiscord(channelId: string, opts: DiscordReactOpts = {}) {
|
|
const rest = resolveDiscordRest(opts);
|
|
await rest.post(Routes.channelTyping(channelId));
|
|
return { ok: true, channelId };
|
|
}
|