Skip to navigation

Discord

Connect your AI agents to Discord.
Ready to connect

Connects with credentials the end user enters, such as an API key, so you don’t need to register an OAuth app.

Authentication: bot token. See Magic Link for the runtime auth flow.

Sample use cases

  • Summarize the last 24 hours of messages in the #support channel
  • Post the weekly release notes to #announcements and pin the message
  • Open a thread on a bug report message and add the on-call engineer to it

Available Tools

list_guild_channels

List every channel and category in a server.

get_channel

Fetch one channel or thread by ID, including its permission overwrites and, for forum channels, the available_tags needed by create_thread.

create_guild_channel

Create a channel in a server. Requires the Manage Channels permission.

update_channel

Modify a channel or thread: rename it, change its topic, slowmode, category, or voice settings, or archive and lock a thread.

delete_channel

Delete a channel, or delete a thread. Requires Manage Channels, or Manage Threads for a thread.

set_channel_permissions

Set a role’s or member’s permission override on a channel, using permission names rather than raw bitfields.

delete_channel_permission

Remove a role’s or member’s permission override from a channel, so they fall back to the category and server defaults.

trigger_typing

Show the bot’s typing indicator in a channel for about 10 seconds.

follow_announcement_channel

Follow an announcement channel so its published messages are crossposted into one of your own channels.

list_guilds

List the servers the bot has been added to.

get_guild

Fetch one server’s settings by ID. Use list_guilds to find server IDs.

get_audit_log

Read a server’s audit log to see who performed moderation and configuration actions.

list_guild_emojis

List a server’s custom emojis. Call this before create_reaction to get each emoji’s reaction_format (‘name:id’), which is the form the reaction tools need.

list_guild_invites

List every active invite for a server, with use counts and expiry.

list_channel_invites

List the active invites pointing at one channel.

get_invite

Look up an invite by its code to see which server and channel it leads to.

create_channel_invite

Create an invite link to a channel. Requires the Create Instant Invite permission. Use list_guild_channels for…

delete_invite

Revoke an invite so it can no longer be used.

list_guild_members

List a server’s members in ID order. Requires the Guild Members privileged intent, enabled on the Bot tab of your application.

search_guild_members

Find server members whose username or nickname starts with a string.

get_guild_member

Fetch one member’s server profile: nickname, roles, join date, and timeout state.

update_guild_member

Change a member’s nickname, roles, voice state, or timeout.

remove_guild_member

Kick a member from a server. Requires the Kick Members permission.

add_member_role

Give a member one role, leaving their other roles alone.

remove_member_role

Take one role away from a member, leaving their other roles alone.

modify_current_member

Change the bot’s own nickname or bio in a server.

list_messages

Read a channel’s or thread’s message history, newest first.

get_message

Fetch one message by ID, including its reaction tallies.

create_message

Post a message to a channel, thread, or DM channel.

update_message

Edit a message the bot itself sent. Content and embeds of another user’s message cannot be edited by any token.

delete_message

Permanently delete one message. Deleting another user’s message requires the Manage Messages permission.

bulk_delete_messages

Delete 2 to 100 messages from a guild channel in one call.

search_messages

Search a server’s messages by content, channel, author, mentions, or attachment type.

crosspost_message

Publish a message from an announcement channel to every server following it.

list_pins

List a channel’s pinned messages, most recently pinned first.

pin_message

Pin a message in its channel. Requires the Pin Messages permission.

unpin_message

Remove a message from its channel’s pins.

list_bans

List a server’s bans, each with the banned user and the reason recorded.

get_ban

Check whether one user is banned from a server, and read the recorded reason.

create_ban

Ban a user from a server, optionally deleting their recent messages.

remove_ban

Lift a server ban so the user can be invited back.

create_reaction

React to a message as the bot. Pass a standard emoji character, or ‘name:id’ for a custom server emoji , use list_guild_emojis to get the ‘name:id’ form.

delete_own_reaction

Remove the bot’s own reaction from a message.

delete_user_reaction

Remove one specific user’s reaction from a message.

list_reactions

List the users who reacted to a message with a given emoji.

delete_all_reactions

Clear reactions from a message. Pass an emoji to clear just that one, or leave it null to clear every reaction.

list_permissions

List every Discord permission name, with its bit and what it allows.

list_roles

List a server’s roles, each with its permissions decoded into names.

get_role

Fetch one role by ID, with its permissions decoded into names.

create_role

Create a role in a server. Requires the Manage Roles permission.

update_role

Modify a role’s name, colour, or permissions.

delete_role

Delete a role from a server. Requires Manage Roles, and the role must sit below the bot’s own highest role.

create_thread_from_message

Start a thread attached to an existing message, so the thread appears under it.

create_thread

Open a thread in a text channel, or a post in a forum or media channel.

list_active_threads

List every thread in a server that is not archived, across all channels.

list_archived_threads

List archived threads under a channel, most recently archived first.

list_thread_members

List the users who have joined a thread.

add_thread_member

Add a user to a thread. The bot must be able to see the thread, and the user must be a member of the server.

remove_thread_member

Remove a user from a thread. Requires Manage Threads, unless the thread is private and the bot created it.

get_current_user

Fetch the account the credential authenticates as, which for a bot token is the bot itself.

get_user

Fetch a user’s global Discord account by ID.

create_dm

Open a direct message channel with a user, or return the existing one.

list_channel_webhooks

List the webhooks configured on a channel, including each one’s token.

create_webhook

Create a webhook on a channel so an external system can post to it without a bot token.

delete_webhook

Delete a webhook, immediately breaking anything posting through it.

execute_webhook

Post a message through a webhook, optionally under a custom name and avatar.