idariaidaria.ai
registry
channeldiscord

Discord

@omadia/channel-discord

Discord-Channel via discord.js Gateway-Bot. Routet Discord-DMs, @Erwähnungen und die Slash-Commands /ask, /agent und /agents zu den Omadia-Agenten.

latest
v0.5.4
license
MIT
versions
14
author
byte5 GmbH

install

In your idaria instance, open Admin → Registries and add this registry, then install Discord from Admin → Plugins → Store.

registryhttps://hub.idaria.ai

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. "Omadia") → 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): omadia 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 omadia (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.

versions

v0.5.4
>=1.82.0 <2.0588.5 KB2026-11-23
.zip1b608fa6eb67…
v0.5.3
>=1.82.0 <2.0588.3 KB2026-11-23
.zipe8ed9072d411…
v0.5.2
>=1.82.0 <2.0587.9 KB2026-11-23
.zipafe12cb7b6f7…
v0.5.1
>=1.82.0 <2.0587.4 KB2026-11-23
.zip0980d687fe05…
v0.5.0
>=1.82.0 <2.0587.4 KB2026-11-22
.zip695509e37fc6…
v0.4.0
>=1.82.0 <2.0581.2 KB2026-11-20
.zip579267b1c3f8…
v0.3.0
>=1.79.0 <2.0579.9 KB2026-11-20
.zip4189a4e0bde3…
v0.2.0
>=1.75.0 <2.0574.4 KB2026-11-20
.zip0575b3c9578c…
v0.1.5
>=1.0 <2.0566.5 KB2026-08-24
.zip17bdd5a356fb…
v0.1.4
>=1.0 <2.0567.8 KB2026-06-03
.zip5dd8d32abe3d…
v0.1.3
>=1.0 <2.0567.6 KB2026-06-03
.zipd1ddd05e6078…
v0.1.2
>=1.0 <2.0567.3 KB2026-06-03
.zipf63391ac09ae…
v0.1.1
>=1.0 <2.0565.9 KB2026-06-03
.zip9eb0eeda5a4b…
v0.1.0
>=1.0 <2.0564.7 KB2026-06-03
.zip846a1265d2be…

setup fields

Values the operator fills in at install-time.

discord_bot_tokensecret
Discord Bot TokenAus dem Discord Developer Portal → deine Application → Bot → 'Reset Token' / 'Copy'. Wird verschlüsselt im Vault gespeichert und nie wieder angezeigt.
required
respond_in_guildsenum
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.
optional
allow_dmsboolean
Direktnachrichten zulassenWenn aktiv, antwortet der Bot in 1:1-Direktnachrichten. DM-Inhalte sind auch ohne privilegiertes Intent für den Bot lesbar.
optional
message_content_intentboolean
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.
optional
guild_members_intentboolean
Server-Mitglieder-Intent anfordernNötig, damit omadia 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.
optional
enable_slash_commandboolean
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.
optional
ignore_botsboolean
Andere Bots ignorierenWenn aktiv, ignoriert der Bot Nachrichten anderer Bots/Webhooks (verhindert Bot-zu-Bot-Schleifen). Eigene Nachrichten werden immer ignoriert.
optional
allowliststring
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'.)
optional

permissions

secrets

runtime_write: true

memory

reads: [0] · writes: [0]

graph

reads: [0] · writes: [0]

network

outbound: [6]

filesystem

scratch: false