import { Routes } from "discord-api-types/v10"; import { requireRuntimeConfig } from "openclaw/plugin-sdk/config-runtime"; import {
buildReactionIdentifier,
createDiscordClient,
formatReactionEmoji,
normalizeReactionEmoji,
} from "./send.shared.js"; import type {
DiscordReactionRuntimeContext,
DiscordReactionSummary,
DiscordReactOpts,
} from "./send.types.js";
function createDiscordReactionRuntimeClient(opts: DiscordReactionRuntimeContext) { return createDiscordClient(opts);
}
function resolveDiscordReactionClient(opts: DiscordReactOpts) { if (!opts.cfg) { thrownew Error( "Discord reactions requires a resolved runtime config. Load and resolve config at the command or gateway boundary, then pass cfg through the runtime path.",
);
} const cfg = requireRuntimeConfig(opts.cfg, "Discord reactions"); return createDiscordClient({ ...opts, cfg });
}
function isDiscordReactionRuntimeContext(
opts: DiscordReactOpts,
): opts is DiscordReactionRuntimeContext { returnBoolean(opts.rest && opts.cfg && opts.accountId);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.