Connect Discord to OpenClaw on Operator.io
Discord is a real-time messaging and VoIP platform for communities and teams. It lets users chat, share media, and collaborate across public and private channels.
Automate Discord with AI
Operator puts an OpenClaw agent in front of Discord. You describe the job from Telegram or Discord and it handles the rest inside Discord, picking the right calls from the 27 Discord actions and checking its own work as it goes.
Your agent reaches Discord 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 Discord
Your agent can call any of these Discord actions by name as part of a larger task. Ask for the outcome you want and it picks the right ones.
Consume Entitlement
Marks a one-time purchase consumable entitlement as consumed for a given application. Only applicable to entitlements backed by one-time purchase consumable SKUs.
Delete Test Entitlement
Deletes a currently active test entitlement for a given application. Use this to clean up test entitlements that are no longer needed.
Delete User Application Role Connection
Deletes the current user's application role connection for the specified application. Removes the platform metadata and linked role connection.
Edit Application Command Permissions
Edits the permissions for a specific application command in a guild. Requires OAuth2 Bearer token (bot tokens will error). The authorizing user must have MANAGE_GUILD and MANAGE_ROLES permissions in the target guild.
Get Application Command Permissions
Retrieves the permissions for a specific application command in a guild. Requires OAuth2 Bearer token (bot tokens will error). The authorizing user must have MANAGE_GUILD and MANAGE_ROLES permissions in the target guild.
Get Batch Application Command Permissions
Retrieves permissions for all commands of an application in a guild. Returns a list of permission objects for each command. Requires OAuth2 Bearer token (Bot tokens will error).
Get Current User Application Entitlements
Tool to retrieve entitlements for the current user for a given application. Use when you need to check what premium offerings or subscriptions the authenticated user has access to.
Get Gateway
Tool to retrieve a valid WebSocket (wss) URL for establishing a Gateway connection to Discord. Use when you need to connect to the Discord Gateway for real-time events.
Get Guild Template
Tool to retrieve information about a Discord guild template using its unique template code. Use when you need to get details about a guild template for creating new servers.
Get Guild Widget
Tool to retrieve the guild widget in JSON format. Use when you need to get public information about a Discord guild's widget that can be displayed on external websites. The widget must be enabled in the guild's server settings.
Get Guild Widget PNG
Tool to retrieve a PNG image widget for a Discord guild. Use when you need a visual representation of the guild widget that can be displayed on external websites. The widget must be enabled in the guild's server settings.
Get my guild member
Retrieves the guild member object for the currently authenticated user within a specified guild, including roles, nickname, join date, and permissions.
Get my OAuth2 authorization
Retrieves current OAuth2 authorization details for the application, including app info, scopes, token expiration, and user data (contingent on scopes like 'identify').
Get My User
Fetches comprehensive profile information for the currently authenticated Discord user, including email if the 'email' scope is granted.
Get OpenID Connect userinfo
Retrieve OpenID Connect compliant user information for the authenticated user. Returns standardized OIDC user claims (sub, email, nickname, picture, locale, etc.) following the OpenID Connect specification. Requires OAuth2 access token w...
Get Public Keys
Tool to retrieve Discord OAuth2 public keys. Use when you need to verify OAuth2 tokens or access public keys for cryptographic operations.
Get SKU Subscription
Retrieves a specific subscription by ID for a given SKU. Use to check details of a single user subscription.
Get User
Retrieve information about a Discord user. With OAuth Bearer token authentication, this returns the authenticated user's information (use '@me'). With Bot token authentication, you can query any user by their ID. Use this when you need u...
Get User Application Role Connection
Retrieves the application role connection for the currently authenticated user for a specified application. Requires the role_connections.write OAuth2 scope.
Resolve Invite
Tool to resolve and retrieve information about a Discord invite code. Use when you need to get details about a guild, channel, or event associated with an invite code.
Leave Guild
Leaves a Discord guild (server) on behalf of the currently authenticated user.
List My Connections
Retrieves a list of the authenticated user's connected third-party accounts on Discord.
List My Guilds
Lists the current user's guilds, returning partial data for each; primarily used for displaying server lists or verifying memberships.
List SKU Subscriptions
Lists all subscriptions for a given SKU. When using a Bot token, the user_id query parameter is required. Returns paginated subscription objects.
List Sticker Packs
Tool to retrieve all available Discord Nitro sticker packs. Use when you need to list or browse official Discord sticker packs.
Modify Current User
Modifies the currently authenticated Discord user's profile. Can update username (limited to 2 changes per hour) and avatar.
Update User Application Role Connection
Updates the application role connection for the currently authenticated user for a specified application. Requires the role_connections.write OAuth2 scope.
How to connect Discord
You authorize Discord once from your dashboard. Operator holds the connection and refreshes the access tokens on its own, so your agent keeps working with Discord 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 Discord
- How do I connect Discord to Operator?
- Connecting Discord is a one time sign in from your Operator dashboard. Operator keeps the connection live and rotates the token on its own, so the agent stays connected to Discord and you never reauthorize by hand.
- Can my agent read and post in Discord 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 Discord API keys?
- No. Operator manages the Discord connection and token refresh, so there are no API keys to paste and nothing to deploy.
- Can my agent use Discord together with my other apps?
- Yes. The same agent reaches every app you connect, so it can move between Discord and tools like Gmail, Slack, Microsoft teams in one job, reading from one and acting in another without you wiring anything between them.
Discord integrations
Pick an app to see what your agent does across Discord and it, or browse all integrations.
Put your agent on Discord
Sign in, connect Discord, and hand your agent the work. Your first week is free.
Get started