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.

communication

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

  1. Open the Discord Developer Portal and sign in.
  2. Top right New Application → give it a name (e.g. "idaria") → Create.
  3. Left sidebar → Bot → confirm Add Bot.

2. Copy the token

  1. On the Bot tab → Reset Token → Yes, do it! → Copy.
  2. Paste this value below as Discord Bot Token. It is stored encrypted in the vault and shown only once — if lost, just "Reset Token" again.

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):

  • Bot tab → Privileged Gateway Intents → enable Message Content Intent → Save.

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

  1. Left sidebar → OAuth2 → URL Generator.
  2. Scopes: tick bot and applications.commands.
  3. Bot Permissions: at least Send Messages and Read Message History.
  4. Copy the generated URL, open it in the browser, pick your server → Authorize.

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_tokensecret, required
    Discord Bot TokenAus dem Discord Developer Portal → deine Application → Bot → 'Reset Token' / 'Copy'. Wird verschlüsselt im Vault gespeichert und nie wieder angezeigt.
  • respond_in_guildsenum, optional
    Verhalten 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_dmsboolean, optional
    Direktnachrichten zulassenWenn aktiv, antwortet der Bot in 1:1-Direktnachrichten. DM-Inhalte sind auch ohne privilegiertes Intent für den Bot lesbar.
  • message_content_intentboolean, optional
    Message-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_intentboolean, optional
    Server-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_commandboolean, optional
    Slash-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_botsboolean, optional
    Andere Bots ignorierenWenn aktiv, ignoriert der Bot Nachrichten anderer Bots/Webhooks (verhindert Bot-zu-Bot-Schleifen). Eigene Nachrichten werden immer ignoriert.
  • allowliststring, optional
    Zugelassene 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
runtime_writeyes
memory
readsnone
writesnone
graph
readsnone
writesnone
network
outbounddiscord.com*.discord.comgateway.discord.gg*.discord.gg*.discordapp.comcdn.discordapp.com
filesystem
scratchno

Dependencies and capabilities

Requires
chatAgent@^1

Versions

VersionCoreSizePublishedsha256Download
v0.6.0latest>=1.82.0 <2.0588.5 KB30 Nov 2026783a949bb199….zip