Files
openclaw/extensions/discord
ToToKr b745862361 fix(discord): keep thread-binding persona UTF-16 safe (#103543)
* 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>
2026-07-10 16:16:24 +01:00
..

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.