openclaw/src/discord
Developer da8c925e8e feat(config): add centralized API endpoint configuration
Add src/config/api-endpoints.ts with ENV variable support for all external API base URLs.
This enables routing traffic through a proxy for multi-tenant deployments, usage metering, and security filtering.

Supported ENV variables:
- TELEGRAM_API_BASE (default: https://api.telegram.org)
- DISCORD_API_BASE (default: https://discord.com/api/v10)
- OPENAI_API_BASE (default: https://api.openai.com/v1)
- ANTHROPIC_API_BASE (default: https://api.anthropic.com)
- GOOGLE_GENERATIVE_API_BASE (default: https://generativelanguage.googleapis.com/v1beta)
- GROQ_API_BASE (default: https://api.groq.com/openai/v1)
- DEEPGRAM_API_BASE (default: https://api.deepgram.com/v1)
- ELEVENLABS_API_BASE (default: https://api.elevenlabs.io)
- OPENAI_TTS_BASE_URL (default: same as OPENAI_API_BASE)

Updated files to use centralized configuration:
- telegram/audit.ts, probe.ts, download.ts, bot/delivery.ts
- channels/plugins/onboarding/telegram.ts
- discord/api.ts, probe.ts
- tts/tts.ts
- memory/embeddings-openai.ts, embeddings-gemini.ts
- media-understanding/providers/openai/audio.ts
- media-understanding/providers/google/audio.ts, video.ts
- media-understanding/providers/deepgram/audio.ts
- media-understanding/providers/groq/index.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 06:43:27 +01:00
..
monitor fix(gateway): gracefully handle AbortError and transient network errors (#2451) 2026-01-26 19:51:53 -06:00
accounts.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
api.test.ts fix: harden discord rate-limit handling 2026-01-24 08:43:28 +00:00
api.ts feat(config): add centralized API endpoint configuration 2026-01-27 06:43:27 +01:00
audit.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
audit.ts fix: surface match metadata in audits and slack logs 2026-01-18 00:50:36 +00:00
chunk.test.ts fix: paragraph-aware newline chunking (#1726) 2026-01-25 13:24:19 +00:00
chunk.ts fix: newline chunking across channels 2026-01-25 04:11:36 +00:00
directory-live.ts refactor: centralize discord api errors 2026-01-20 17:28:19 +00:00
gateway-logging.test.ts chore(discord): restore gateway log context 2026-01-13 04:40:22 +00:00
gateway-logging.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
index.ts feat: unify poll support 2026-01-06 04:51:05 +00:00
monitor.gateway.test.ts Discord: harden gateway resilience 2026-01-08 16:52:44 -06:00
monitor.gateway.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
monitor.slash.test.ts feat(discord): add configurable privileged Gateway Intents (GuildPresences, GuildMembers) (#2266) 2026-01-26 10:39:54 -06:00
monitor.test.ts fix(discord): autoThread ack reactions + exec approval null handling (#1511) 2026-01-23 20:01:15 +00:00
monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts test: cover explicit mention gating across channels 2026-01-24 11:09:33 +00:00
monitor.tool-result.sends-status-replies-responseprefix.test.ts fix: unify inbound dispatch pipeline 2026-01-23 22:58:54 +00:00
monitor.ts refactor(channels): share channel config matching 2026-01-17 23:03:51 +00:00
probe.intents.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
probe.ts feat(config): add centralized API endpoint configuration 2026-01-27 06:43:27 +01:00
resolve-channels.test.ts feat(channels): add resolve command + defaults 2026-01-18 01:00:24 +00:00
resolve-channels.ts refactor: centralize discord api errors 2026-01-20 17:28:19 +00:00
resolve-users.ts refactor: centralize discord api errors 2026-01-20 17:28:19 +00:00
send.channels.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.creates-thread.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.emojis-stickers.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.guild.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.messages.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.outbound.ts fix: newline chunking across channels 2026-01-25 04:11:36 +00:00
send.permissions.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.reactions.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.sends-basic-channel-messages.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.shared.ts fix: newline chunking across channels 2026-01-25 04:11:36 +00:00
send.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.types.ts refactor(discord): split send pipeline 2026-01-14 05:39:55 +00:00
targets.test.ts refactor(channels): unify target parsing 2026-01-18 00:31:42 +00:00
targets.ts refactor(channels): unify target parsing 2026-01-18 00:31:42 +00:00
token.test.ts fix: prefer config tokens over env for discord/telegram 2026-01-16 23:13:00 +00:00
token.ts fix: prefer config tokens over env for discord/telegram 2026-01-16 23:13:00 +00:00