melso
AutomationUse casesChangelog
Start your business
Codex and Discord Bot

Connect Codex to Discord Bot

Give your Codex agent access to Discord Bot in Melso — 165 tools it can call while it works through a task.

Set it up in Melso

  1. 1In Melso, open Settings → Agent Apps and hit Connect on Discord Bot.
  2. 2Finish the OAUTH2 sign-in in the window that opens. Melso stores the connection, not your credentials.
  3. 3Open your Codex agent, go to its Agent Apps tab, and allow Discord Bot.
  4. 4Give the agent a task. It calls Discord Bot itself when the work needs it.
Get Melso
What you get

What Discord Bot gives your agent

The tools, permissions, and events Discord Bot exposes — the same ones your agent can use once the app is authorized.

What you sign in with

Discord Bot connects with OAUTH2.

  • Client id
  • Client secret
  • Bot Token
  • Permission Integer

Permissions

identifyemailbotmessages.read

Tools Discord Bot exposes

DISCORDBOT_ADD_GROUP_DM_USER

Add recipient to group channel

Adds a user to a Discord group DM channel. Requires a user OAuth2 access token with the gdm.join scope. Bot tokens cannot be used for this endpoint.

DISCORDBOT_ADD_GUILD_MEMBER

Add guild member

Adds a user to a Discord guild using their OAuth2 access token (which must have guilds.join scope). Returns the guild member object on 201 Created, or indicates the user is already a member on 204.

DISCORDBOT_ADD_GUILD_MEMBER_ROLE

Assign role to guild member

Assigns a role to a guild member. Requires MANAGE_ROLES permission and the role must be lower in hierarchy than the bot's highest role. Returns 204 on success.

DISCORDBOT_ADD_MY_MESSAGE_REACTION

Add Reaction To Message

Adds an emoji reaction from the bot to a message. Requires READ_MESSAGE_HISTORY, and ADD_REACTIONS if no one else has reacted with this emoji yet.

DISCORDBOT_ADD_THREAD_MEMBER

Add thread member

Adds a user to a specific, unarchived thread. The user must have access to the parent channel.

DISCORDBOT_BAN_USER_FROM_GUILD

Ban user from guild

Permanently bans a user from a Discord guild, optionally deleting their recent messages.

DISCORDBOT_BULK_BAN_USERS_FROM_GUILD

Bulk ban users from guild

Bans up to 200 users from a Discord guild, optionally deleting their recent messages. Requires BAN_MEMBERS permission.

DISCORDBOT_BULK_DELETE_MESSAGES

Bulk Delete Messages

Bulk deletes messages in a Discord channel. Requires MANAGE_MESSAGES permission. Messages must be less than 14 days old. Between 2 and 100 messages can be deleted at once.

Example prompts

  • Use Discord Bot to check recent changes and summarize them in the issue.
  • When a customer writes in, pull their data from Discord Bot before replying.
  • Audit our open items in Discord Bot and notify the channel of anything stale.

Useful links

  • Discord Bot website
  • Melso Agent Apps docs

More in Team Chat

  • Slack
  • Slackbot
  • Discord
  • Microsoft Teams
  • Discord Bot
melso

Run your company with AI agents.

Start your business

Product

  • Home
  • Automation
  • Melso vs Polsia
  • Use cases
  • Changelog
  • Download

Resources

    Company

    • About
    • Contact Sales

    © 2026 Melso. All rights reserved.