Discord Issues
Run openacp doctor first — it validates your bot token and guild access automatically.
If you haven't finished initial setup, see the Discord Setup guide first.
Slash commands don't appear in Discord
Symptoms: You type / in a Discord channel but no OpenACP commands are listed.
Cause: Slash commands are registered per-guild on startup. Either the bot hasn't started successfully, it hasn't been invited to the server with the applications.commands scope, or Discord's cache hasn't updated yet.
Solution:
Invite the bot using a URL that includes both
botandapplications.commandsscopes. Generate this URL in the Discord Developer Portal under OAuth2 → URL Generator.Restart OpenACP — commands are registered on every startup via the Discord REST API.
Discord can take a few minutes to propagate newly registered slash commands to clients. Wait a moment and try again.
"Missing Intents" error in logs
Symptoms: Logs show an error like Used disallowed intents or Missing Intents, and the bot goes offline.
Cause: The Discord bot requires Guilds, GuildMessages, and MessageContent intents. MessageContent is a privileged intent that must be explicitly enabled in the Developer Portal.
Solution:
Go to the Discord Developer Portal → your application → Bot.
Under Privileged Gateway Intents, enable Message Content Intent.
Save changes and restart OpenACP.
Thread creation fails
Symptoms: A new session starts but no thread appears in Discord, or logs show Failed to create thread.
Cause: The bot does not have permission to create threads in the forum channel, or the forum channel ID stored in config is stale (channel was deleted and recreated).
Solution:
Ensure the bot has Manage Threads and Send Messages in Threads permissions in the forum channel.
Delete the
forumChannelIdvalue from~/.openacp/config.jsonso OpenACP recreates the forum channel on next startup.If using a pre-existing forum channel, make sure it is a Forum type channel, not a regular text channel.
Bot shows as offline
Symptoms: The bot's status dot in Discord is grey (offline) even though OpenACP is running.
Cause: The bot token is invalid or has been regenerated in the Developer Portal, or the bot failed to connect to the Discord Gateway.
Solution:
Run
openacp doctor— it callsGET /users/@mewith your token and reports401 Unauthorizedif the token is invalid.If the token has been regenerated, update it in
~/.openacp/config.json(or theDISCORD_BOT_TOKENenvironment variable) and restart.Check for
[DiscordAdapter] Initialization failedin the logs for the specific error.
"Unknown interaction" errors
Symptoms: Clicking permission buttons or slash commands produces a Discord "This interaction failed" message.
Cause: Discord requires interactions to be acknowledged within 3 seconds. If OpenACP is under heavy load or paused (e.g., waiting for agent startup), the interaction token expires.
Solution:
This is typically transient. Retry the action once OpenACP is idle.
If it happens consistently, check
[DiscordAdapter] interactionCreate handler errorin logs for the underlying cause.Ensure the server running OpenACP has low latency to Discord's API (ideally under 1 second round-trip).
Messages are not received by the agent
Symptoms: You send a message in a thread but the agent doesn't respond and no log entries appear.
Cause: The MessageContent privileged intent is not enabled (Discord sends the message event but with an empty content field), or the message was sent outside an active session thread.
Solution:
Enable Message Content Intent in the Discord Developer Portal (see "Missing Intents" above).
Confirm you are writing in a thread that belongs to an active OpenACP session — messages in regular channels are ignored; only thread messages are routed to the agent.
Check
security.allowedUserIds— if populated, your Discord user ID must be listed.
Forum channel not found on startup
Symptoms: OpenACP fails to start with Guild not found or creates duplicate forum channels on each restart.
Cause: The guildId is wrong, or the bot is not a member of the guild. Alternatively, the saved forumChannelId points to a deleted channel.
Solution:
Run
openacp doctor— it callsGET /guilds/{guildId}and returns a specific error (403 if the bot isn't in the server, 404 if the guild ID is wrong).To invite the bot: Developer Portal → OAuth2 → URL Generator → scopes:
bot,applications.commands→ permissions:Manage Channels,Manage Threads,Send Messages,Send Messages in Threads,Read Message History.Clear stale channel IDs from config and let OpenACP recreate them.
Last updated
Was this helpful?
