Connect Discordbot to OpenClaw on Operator.io
Discordbot is an automation tool for Discord servers that handles moderation, messaging, and user engagement. It helps communities run smoothly by automating routine and complex tasks.
Automate Discordbot with AI
Operator runs your personal agent on OpenClaw, the open source agent framework, and points it straight at Discordbot. You message the agent on Telegram or Discord, tell it what you need in plain language, and it operates Discordbot on its own, running actions like add recipient to group channel, add guild member, assign role to guild member.
Your agent reaches Discordbot directly or through connectors like Composio MCP and Pipedream MCP, which handle the sign in and token refresh for you, so there is nothing to wire up and no API keys to paste.
What your agent can do with Discordbot
Your agent can call any of these Discordbot actions by name as part of a larger task. Ask for the outcome you want and it picks the right ones.
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.
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.
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.
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.
Add thread member
Adds a user to a specific, unarchived thread. The user must have access to the parent channel.
Ban user from guild
Permanently bans a user from a Discord guild, optionally deleting their recent messages.
Bulk ban users from guild
Bans up to 200 users from a Discord guild, optionally deleting their recent messages. Requires BAN_MEMBERS permission.
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.
Create global application command
Creates a new global Discord application command. Global commands can take up to an hour to propagate. Command names must be unique per type within the application scope.
Create auto moderation rule
Creates a new auto moderation rule for a Discord guild. Requires MANAGE_GUILD permission. Use this to set up filters for profanity, spam, excessive mentions, or custom keywords.
Create channel invite
Creates a new invite link for a Discord channel. Requires CREATE_INSTANT_INVITE permission.
Initiate user channel with recipient
Creates a new direct message (DM) channel or retrieves an existing one, using recipient_id for a 1-on-1 DM or access_tokens for a group DM; this action only establishes or fetches the channel and does not send messages.
Create new guild
Creates a new Discord guild (server). The bot must be in fewer than 10 guilds to use this endpoint. Icon must be a base64 encoded 128x128 image, and if afk_channel_id is set, afk_timeout must also be set.
Create guild application command
Creates a new guild-specific application command. Command names must be unique per type within the guild (max 100 total commands).
Create guild channel
Creates a new Discord channel (text, voice, category, etc.) within a guild. Requires MANAGE_CHANNELS permission.
Create guild emoji
Creates a new custom emoji in a specified Discord guild, requiring CREATE_EXPRESSIONS permission and adherence to guild emoji limits.
Create guild from template
Creates a new Discord guild by applying channels, roles, and settings from a specified guild template code.
Create role with guild id
Creates a new role in a Discord guild with customizable name, permissions, color, hoist, mentionability, and icon. Requires MANAGE_ROLES permission. The icon and unicode_emoji fields are mutually exclusive.
Create guild scheduled event
Creates a new scheduled event in a Discord guild. Events can be hosted in stage channels, voice channels, or external locations. STAGE_INSTANCE/VOICE require channel_id, while EXTERNAL requires entity_metadata with a location and schedul...
Create guild sticker
Uploads a PNG, APNG, GIF, or Lottie JSON file (max 512KB) as a new custom sticker to the specified Discord guild; requires Manage Expressions permission.
Create guild template
Creates a template of an existing Discord guild's structure (settings, roles, channels) but not its content (messages, members).
Post interaction callback
Sends a response to a Discord interaction (e.g., slash command, component). Ensure response type is context-appropriate and initial reply is within 3 seconds.
Send Message To Channel
Sends a message to a Discord channel. Supports text content, embeds, stickers, components, and replies. Requires SEND_MESSAGES permission and at least one of content, embeds, sticker_ids, or components.
Create stage instance
Creates a new Stage instance in a Stage channel for hosting live audio events. Requires MANAGE_CHANNELS, MUTE_MEMBERS, and MOVE_MEMBERS permissions. A Stage channel can only have one active instance at a time.
Create new thread in channel
Creates a new thread in a text, announcement, forum, or media channel.
Create thread from message
Creates a new thread from a specific message in a Discord channel, requiring CREATE_PUBLIC_THREADS permission.
Create channel webhook
Creates a new webhook in a specified Discord channel, requiring MANAGE_WEBHOOKS permission.
Crosspost Message
Crossposts a message from an announcement channel to all channels following it. The message must not have been previously crossposted and must not be a system message.
Delete All Reactions
Removes all reactions from a message. Requires MANAGE_MESSAGES permission. This removes reactions from all users, not just the bot.
Delete All Reactions By Emoji
Removes all reactions for a specific emoji from a message. Requires MANAGE_MESSAGES permission. Removes reactions from all users, not just the bot.
Delete global application command
Permanently deletes a global application command. This is irreversible and the command will no longer appear in Discord clients. Global command deletions can take up to 1 hour to propagate.
Delete auto moderation rule
Permanently deletes a specific auto moderation rule from a Discord guild. Requires MANAGE_GUILD permission.
Delete channel by id
Permanently deletes a Discord channel by its ID. This action is irreversible. Returns the deleted channel object (not 204).
Delete channel permission override
Removes channel-specific permission overwrites for a user or role, reverting them to default permissions inherited from the server or category. Requires MANAGE_ROLES permission. This action is irreversible.
Remove user from group DM
Removes a recipient from a Discord group DM channel. Requires OAuth2 user access tokens with the gdm.join scope. Only the group DM owner or managing application can remove recipients.
Delete guild by id
Permanently deletes a specified Discord guild (server). The authenticated user must be the owner of the guild. This action is irreversible.
Delete guild application command
Permanently deletes a guild-specific application command. This is irreversible.
Delete guild emoji by id
Permanently deletes a specified custom emoji from a guild, requiring Manage Expressions permissions; cannot delete default emojis and is irreversible.
Delete guild integration
Permanently deletes a specific integration from a Discord guild, removing any associated webhooks and kicking the bot if present. Requires MANAGE_GUILD permission.
Delete guild member by id
Removes (kicks) a member from a Discord guild. The user must be an existing member of the specified guild. Requires KICK_MEMBERS permission.
Delete guild member role
Removes a specified role from a member of a Discord guild. Requires MANAGE_ROLES permission and the role must be lower in hierarchy than the bot's highest role. Idempotent - succeeds even if member does not have the role.
Delete role from guild
Permanently deletes a specified role from a Discord guild, revoking it from all members. Requires MANAGE_ROLES permission and the target role must be lower in hierarchy than the bot's highest role.
Delete guild scheduled event
Permanently deletes a specific scheduled event from a Discord guild. This action is irreversible.
Delete guild sticker
Permanently deletes a custom sticker from a Discord guild; the specified guild and sticker must exist, and this action is irreversible.
Delete guild template by code
Deletes an existing guild template by its unique code from a specified guild, returning the deleted template's details.
Delete Message
Permanently deletes a message from a Discord channel. The bot can delete its own messages or, with MANAGE_MESSAGES permission, delete messages from other users.
Remove My Reaction
Removes the bot's own emoji reaction from a message. Only removes the bot's reaction, not other users' reactions.
Delete original webhook message
Permanently deletes the original (@original) message posted by a webhook or interaction response.
Plus 117 more Discordbot actions your agent can call.
How to connect Discordbot
You authorize Discordbot once from your dashboard. Operator holds the connection and refreshes the access tokens on its own, so your agent keeps working with Discordbot without you signing in again. The same setup unlocks every other app your agent can reach, so you only do it once.
When you are ready, the get started guide walks through standing up your OpenClaw agent.
Common questions about Discordbot
- How do I connect Discordbot to Operator?
- You authorize Discordbot once from your Operator dashboard. Operator holds the connection and refreshes the access token for you, so your agent keeps working with Discordbot without you signing in again.
- Can my agent read and post in Discordbot for me?
- Yes. It can post messages, reply in threads, search history, and pull out what matters from a busy conversation. Point it at a channel and it summarizes the thread back to you, or posts an update when something changes in another app you have connected.
- Do I need to write code or manage Discordbot API keys?
- No code and no API keys. You authorize Discordbot through a normal sign in and Operator handles the connection, so there is nothing to wire up or host.
- Can my agent use Discordbot together with my other apps?
- Yes. The same agent reaches every app you connect, so it can move between Discordbot and tools like Gmail, Slack, Discord in one job, reading from one and acting in another without you wiring anything between them.
Connect Discordbot to another app
Your agent can run Discordbot together with any of these. Each page shows what it does across both apps in one job.
More apps to automate
Apps your agent runs alongside Discordbot, or browse all integrations.
Put your agent on Discordbot
Sign in, connect Discordbot, and hand your agent the work. Your first week is free.
Try for free