mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 06:51:36 +00:00
* fix(discord): keep thread-binding persona UTF-16 safe resolveThreadBindingPersona truncated the persona label with a raw .slice(0, THREAD_BINDING_PERSONA_MAX_CHARS). When an emoji or other astral code point straddles the 80-unit limit, the raw slice keeps a dangling high surrogate, so the Discord thread-binding persona (webhook display name) can carry a lone surrogate. Route the clamp through the shared truncateUtf16Safe primitive so the boundary code point is dropped whole. Adds a regression test. * test(discord): assert exact persona boundary * docs(changelog): credit Discord persona fix --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
OpenClaw Discord
Official OpenClaw channel plugin for Discord servers, channels, DMs, slash commands, and app events.
Install from OpenClaw:
openclaw plugin add @openclaw/discord
Configure a Discord bot token and the channels or servers OpenClaw should handle. The plugin lets OpenClaw agents receive Discord messages and respond through the configured Discord app.