openclaw/src
nonggia.liang 4af7eb6cde
fix: resolve Discord usernames to user IDs for outbound messages
When sending Discord messages via cron jobs or the message tool,
usernames like "john.doe" were incorrectly treated as channel names,
causing silent delivery failures.

This fix adds a resolveDiscordTarget() function that:
- Queries Discord directory to resolve usernames to user IDs
- Falls back to standard parsing for known formats
- Enables sending DMs by username without requiring explicit user:ID format

Changes:
- Added resolveDiscordTarget() in targets.ts with directory lookup
- Added parseAndResolveRecipient() in send.shared.ts
- Updated all outbound send functions to use username resolution

Fixes #2627
2026-01-27 21:04:08 -06:00
..
acp refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
agents fix(minimax): use correct API endpoint and format 2026-01-27 19:48:38 -06:00
auto-reply feat: Add support for Telegram quote (partial message replies) (#2900) 2026-01-27 15:59:24 -05:00
browser refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
canvas-host chore: stop tracking a2ui bundle hash 2026-01-27 16:07:33 -05:00
channels feat: Add support for Telegram quote (partial message replies) (#2900) 2026-01-27 15:59:24 -05:00
cli fix: migrate legacy state/config paths 2026-01-28 00:16:00 +00:00
commands chore: bump beta version to 2026.1.27-beta.1 2026-01-28 01:28:16 +01:00
compat fix: add MACOS_APP_SOURCES_DIR constant and update test to use new path 2026-01-27 14:17:20 -06:00
config test: honor windows homedir env for legacy config 2026-01-28 01:09:44 +00:00
cron test: handle legacy cron swift path 2026-01-28 00:31:58 +00:00
daemon Branding: update bot.molt bundle IDs + launchd labels 2026-01-27 14:46:50 -06:00
discord fix: resolve Discord usernames to user IDs for outbound messages 2026-01-27 21:04:08 -06:00
docs bugfix:The Mintlify navbar (logo + search bar with ⌘K) scrolls away w… (#2445) 2026-01-26 17:39:10 -08:00
gateway refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
hooks refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
imessage refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
infra style: format unhandled rejection handler 2026-01-28 00:37:03 +00:00
line refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
link-understanding refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
logging refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
macos refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
markdown refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
media fix: avoid global image size regression 2026-01-27 16:02:19 -06:00
media-understanding refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
memory refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
node-host refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
pairing refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
plugin-sdk refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
plugins refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
process fix: harden exec spawn fallback 2026-01-25 06:37:39 +00:00
providers refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
routing refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
scripts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
security fix(models): recognize Venice-style claude-opus-45 as claude-opus-4-5 thanks @jonisjongithub 2026-01-27 12:40:06 -08:00
sessions refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
shared/text fix: unify reasoning tags + agent ids (#1613) (thanks @kyleok) (#1629) 2026-01-24 19:56:02 +00:00
signal refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
slack refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
telegram fix: handle Telegram network errors gracefully to prevent gateway crashes 2026-01-27 19:56:24 -06:00
terminal chore: update molt.bot domains 2026-01-27 12:21:01 +00:00
test-helpers refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
test-utils feat: Add Line plugin (#1630) 2026-01-25 12:22:36 +00:00
tts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
tui refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
types TTS: gate auto audio on inbound voice notes (#1667) 2026-01-25 04:35:20 +00:00
utils refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
web refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
whatsapp refactor: prune legacy group prefixes 2026-01-17 08:47:25 +00:00
wizard refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
channel-web.barrel.test.ts refactor!: rename chat providers to channels 2026-01-13 08:40:39 +00:00
channel-web.ts refactor!: rename chat providers to channels 2026-01-13 08:40:39 +00:00
docker-setup.test.ts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
entry.ts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
git-hooks.test.ts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
globals.test.ts
globals.ts CLI: streamline startup paths and env parsing 2026-01-18 23:10:39 +00:00
index.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
index.ts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
logger.test.ts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
logger.ts refactor(logging): split config + subsystem imports 2026-01-19 00:15:44 +00:00
logging.ts fix: unblock bundled plugin load 2026-01-18 19:34:21 +00:00
polls.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
polls.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
postinstall-patcher.test.ts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
runtime.ts perf: speed up memory batch polling 2026-01-18 03:55:14 +00:00
utils.test.ts fix: migrate legacy state/config paths 2026-01-28 00:16:00 +00:00
utils.ts fix: migrate legacy state/config paths 2026-01-28 00:16:00 +00:00
version.ts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00