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.
https://hub.idaria.aisetup guide
Create a Discord bot
You need a bot token from the Discord Developer Portal. Takes about 5 minutes.
1. Create an application + bot
- Open the Discord Developer Portal and sign in.
- Top right New Application → give it a name (e.g. "Omadia") → Create.
- Left sidebar → Bot → confirm Add Bot.
2. Copy the token
- On the Bot tab → Reset Token → Yes, do it! → Copy.
- 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
- Left sidebar → OAuth2 → URL Generator.
- Scopes: tick
botandapplications.commands. - Bot Permissions: at least Send Messages and Read Message History.
- 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
setup fields
Values the operator fills in at install-time.
permissions
secrets
runtime_write: true
memory
reads: [0] · writes: [0]
graph
reads: [0] · writes: [0]
network
outbound: [6]
filesystem
scratch: false