Discord
@idaria/channel-discorddiscord
Discord-Channel via discord.js Gateway-Bot. Routet Discord-DMs, @Erwähnungen und die Slash-Commands /ask, /agent und /agents zu den idaria-Agenten.
Setup guide
Create a Discord bot
You need a bot token from the Discord Developer Portal. Takes about 5 minutes.
1. Create an application + bot
2. Copy the token
3. Intents (only for "Respond to every message", facilitators and server channels)
The default (DMs + @mention) needs no privileged intent. Only if you set Behaviour in servers to Respond to every message, or a facilitator agent should moderate a server channel (it has to read messages that do not mention it):
Server channels (groups): idaria answers in a group only when it knows who is in the channel. Discord sends the member list only to bots with the privileged Server Members Intent: enable it in the same place and tick Request server-members intent below. Without it the bot answers in DMs only. DMs need no intent.
Choosing an agent
The bot in this setup is shared. To talk to a specific agent through it,
type /agent <name> (or use the slash command) once; /agents lists the
agents you can choose; /agent alone clears your choice. An agent can
also have a bot of its own: create one in the Developer Portal and paste
its token on the agent's page in idaria (Channels → Own bots, see the README).
4. Invite the bot to your server
Tip: for the optional allowlist, enable Settings → Advanced → Developer Mode in Discord, then right-click a user/server → Copy ID.
5. Done
Paste the token below and install. You'll see the connection status and the invite URL afterwards in the plugin admin UI.
Setup fields
The operator fills these in when installing the plugin.
- discord_bot_tokenDiscord Bot TokenAus dem Discord Developer Portal → deine Application → Bot → 'Reset Token' / 'Copy'. Wird verschlüsselt im Vault gespeichert und nie wieder angezeigt.
- respond_in_guildsVerhalten in Servern (Guilds)Wann der Bot in Server-Kanälen antwortet. 'mention' (Standard): nur wenn er @erwähnt wird. 'all': auf jede Nachricht (benötigt das Message-Content-Intent unten). 'off': in Servern stumm, nur Direktnachrichten.
- allow_dmsDirektnachrichten zulassenWenn aktiv, antwortet der Bot in 1:1-Direktnachrichten. DM-Inhalte sind auch ohne privilegiertes Intent für den Bot lesbar.
- message_content_intentMessage-Content-Intent anfordernNötig für 'Auf jede Nachricht' und damit ein Facilitator-Agent einen Server-Kanal moderieren kann (er liest dann auch Nachrichten ohne Erwähnung). Fordert das privilegierte Message-Content-Intent an — das musst du im Developer Portal → Bot → 'Privileged Gateway Intents' separat aktivieren, sonst schlägt der Login fehl. Für DMs und @Erwähnungen NICHT nötig.
- guild_members_intentServer-Mitglieder-Intent anfordernNötig, damit idaria in Server-Kanälen weiß, wer anwesend ist, und dort antwortet (Gruppen werden sonst nicht beantwortet). Fordert das privilegierte Server-Members-Intent an — das musst du im Developer Portal → Bot → 'Privileged Gateway Intents' separat aktivieren, sonst schlägt der Login fehl. Für DMs NICHT nötig.
- enable_slash_commandSlash-Commands registrieren (/ask, /agent, /agents)Registriert global die Slash-Commands /ask <Frage>, /agent <Name> (Agent wählen; ohne Name: Wahl aufheben) und /agents (wählbare Agenten). Die globale Registrierung kann nach dem ersten Start bis zu einer Stunde brauchen, bis sie in allen Servern erscheint.
Show all 8 setup fields
- ignore_botsAndere Bots ignorierenWenn aktiv, ignoriert der Bot Nachrichten anderer Bots/Webhooks (verhindert Bot-zu-Bot-Schleifen). Eigene Nachrichten werden immer ignoriert.
- allowlistZugelassene IDs (optional)Komma-getrennte Discord-User-IDs und/oder Guild-IDs, die mit dem Bot interagieren dürfen. Leer = alle. (Entwickler-Modus in Discord aktivieren → Rechtsklick → 'ID kopieren'.)
Permissions
This is everything the plugin is allowed to access once it is installed.
- secrets
- yes
- memory
- none
- none
- graph
- none
- none
- network
- discord.com*.discord.comgateway.discord.gg*.discord.gg*.discordapp.comcdn.discordapp.com
- filesystem
- no
Dependencies and capabilities
- chatAgent@^1
Versions
| Version | Core | Size | Published | sha256 | Download |
|---|---|---|---|---|---|
| v0.6.0 | >=1.82.0 <2.0 | 588.5 KB | 30 Nov 2026 | 783a949bb199… | .zip |