discord-mcp
v2.7.0Run your Discord from Claude, Codex, Cursor or VS Code: messages, moderation, roles, forums, events
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
discord_list_guilds
List the Discord servers (guilds) the bot is a member of (id, name, member count, icon). When DISCORD_ALLOWED_GUILDS is set, only those servers are listed. With DISCORD_GUILD_MEMBERS=false, the member count is not updated after the bot connects. Takes no arguments. Read-only. Start here to discover the guild_id needed by most other tools.
discord_get_guild_info
Get details about one server: name, description, member/channel/role counts, boost tier, owner, and creation date. The owner field is a user ID. roleCount includes the @everyone role. channelCount also counts the threads in the bot's cache. With DISCORD_GUILD_MEMBERS=false, memberCount is not updated after the bot connects. Use discord_get_server_stats for a finer breakdown (humans vs bots, channel types).
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_list_channels
List all channels in a server, grouped by their parent category and ordered by position. Returns a JSON object keyed by category name. Channels that Discord hides from the bot behind the placeholder name ___hidden___ are left out, and discord_find_channel_by_name reports how many; a visible channel whose category is hidden is listed under "Hidden parent". Read-only. Use discord_find_channel_by_name to locate a specific channel. Use discord_get_forum_channels for forums only.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_find_channel_by_name
Find channels whose name contains a substring (case-insensitive). Returns { matches: [...], hiddenChannels } with the id, name and type of every match, active threads included. Channels that Discord hides from the bot behind the placeholder name ___hidden___ are left out of matches and counted in hiddenChannels; when it is above 0, a note field says a channel missing from matches may still exist. The list is empty when nothing matches. Useful for resolving a channel_id when you only know the channel's name. Use discord_list_channels to see every channel grouped by category.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
name * | string | Case-insensitive substring to match against channel names. |
discord_read_messages
Read messages from a text channel or thread, oldest-to-newest. Page backwards by re-calling with before set to the id of the oldest message you received, which walks a channel past the 100-message per-call cap. Requires the View Channel and Read Message History permissions; without Read Message History an empty result fails with an error naming the permission. Returns { messages: [...] } with id, author, content, timestamp, attachment count, pinned flag, and the text of any embeds. Use discord_search_messages or discord_search_guild_messages to filter by keyword, or discord_fetch_pinned_messag…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread to read from. |
after | string | Return only messages newer than this message ID (snowflake). Page forwards by passing the id of the newest message from the previous call. |
around | string | Return messages centered on this message ID (snowflake): Discord splits `limit` either side of it, and an even `limit` puts the extra message on the newer side. Use it to read outward from a known mes… |
before | string | Return only messages older than this message ID (snowflake). Page backwards through history by passing the id of the oldest message from the previous call. |
limit | integer | How many messages to fetch per call (1–100). Default 20. |
since | Return only messages posted after this instant, as an ISO 8601 date or a date-time with an explicit offset (e.g. "2026-08-01" or "2026-08-01T09:00:00Z"). Convenience form of `after`: the call yields t… |
discord_send_message
Send a plain-text message to a channel or thread. For rich content (title, color, fields, images) use discord_send_embed; to attach a reply reference to an existing message use discord_reply_message. Requires the bot to have the Send Messages permission (or Send Messages in Threads for a thread). Returns the new message ID. Use discord_send_multiple_embeds for several embeds, discord_forward_message to share an existing message, discord_send_webhook_message to post as a webhook, discord_create_poll for a poll, or discord_send_dm for a DM; in a thread, discord_reply_to_forum does the same.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the target channel or thread. |
content * | string | Plain-text body of the message (max 2000 characters). |
discord_reply_message
Reply to a specific message, attaching a reply reference so clients show it as a threaded reply. Use discord_send_message for a standalone message with no reference. Requires the Read Message History and Send Messages permissions (or Send Messages in Threads for a thread). Discord refuses some system messages as reply targets. Returns the new reply's message ID. In a DM, use discord_reply_dm; discord_reply_to_forum posts in a thread without a reply reference.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the message. |
content * | string | Plain-text body of the reply (max 2000 characters). |
message_id * | string | ID of the message to reply to. |
discord_edit_message
Edit the text content of a message previously sent by this bot. Discord forbids editing other users' messages, so this fails for non-bot messages. It changes the text and keeps any embeds; discord_edit_embed replaces the embeds and keeps the text. Works in text channels and threads. Requires the View Channel and Read Message History permissions. Returns the edited message ID. Use discord_edit_dm for a DM, or discord_edit_webhook_message for a message sent through a webhook.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the message. |
content * | string | New plain-text content that fully replaces the existing content (max 2000 characters). |
message_id * | string | ID of the message to edit. Must be a message authored by this bot. |
discord_add_reaction
Add a single emoji reaction to a message as the bot. Requires the Read Message History permission to look the message up (and Add Reactions for an emoji no one has reacted with yet). Use discord_remove_reactions to undo. Idempotent: re-adding the bot's existing reaction has no effect.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the message. |
emoji * | string | Unicode emoji (e.g. '👍') or a custom emoji in 'name:id' format. |
message_id * | string | ID of the message to react to. |
discord_list_channel_threads
List the threads in a text or announcement channel. Returns { threads: [...], hasMore, nextBefore }. The first call includes active threads plus the first page of archived ones; while hasMore is true pass nextBefore back as `before`. hasMore means that page came back full, so the last call can return nothing. messageCount excludes the starter message and deleted messages, and is inaccurate above 50 for threads created before July 1, 2022. Requires the View Channel and Read Message History permissions. Read-only. Use discord_list_forum_threads for a forum's posts.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the text or announcement channel to list threads from. |
before | string | Pagination cursor: an ISO timestamp compared against when a thread was archived. Pass the previous response's nextBefore to fetch older archived threads. When set, active threads are omitted. |
limit | integer | Max archived threads per page (2–100). Default 100. |
type | string | Which archived threads to page through. Private requires the Manage Threads permission. Active threads are returned either way. Default public. |
discord_create_thread
Create a thread, either branching from an existing message (pass message_id) or as a standalone thread in a text or announcement channel (omit message_id). Standalone creation fails if channel_id is a thread, a voice channel or a stage channel. Requires the Create Public Threads permission (or Create Private Threads for a private thread). Branching from a message requires the Read Message History permission. Returns the new thread's ID. Set private for a standalone thread in a text channel that only its members and moderators see. Adding people with member_ids requires the Send Messages in Thr…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the parent text or announcement channel. For a message-based thread, the channel containing message_id. |
name * | string | Name of the thread to create (max 100 characters). |
auto_archive_duration | number | Minutes of inactivity before auto-archiving: 60, 1440, 4320, or 10080. Default 1440 (24h). |
invitable | boolean | Optional, private threads only. Whether members without Manage Threads can add other people to the thread. Discord's default is true. |
member_ids | array | Optional. Up to 50 Discord user IDs (snowflakes) to add to the new thread; duplicates are added once. Needs Send Messages in Threads. A refused add, or one the call had no time left for, is reported i… |
message_id | string | Optional. Message to branch the thread from. If omitted, a standalone thread is created in the channel. |
private | boolean | Optional. True creates a standalone private thread, visible only to its members and to moderators; the bot joins it as its creator. Not available in an announcement channel, whose threads are public.… |
discord_add_thread_member
Add a member to a thread. This is how people join a private thread, which they cannot open otherwise; in a public thread it makes them follow it. Works on any thread, forum posts included. Adding someone already in the thread changes nothing. The member must be able to view the parent channel. If Discord refuses because the thread is archived, it is unarchived and the call retried, and it stays open afterwards. Unarchiving a locked thread requires the Manage Threads permission. Requires the Send Messages in Threads permission. Returns a confirmation. Use discord_remove_thread_member to take so…
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | ID (snowflake) of the thread: public, private, announcement, or a forum post. |
user_id * | string | Discord user ID (snowflake) of the member. |
discord_remove_thread_member
Remove a member from a thread. In a private thread they lose access until someone adds them again; in a public thread they only stop following it and can still open it. Removing someone who is not in the thread changes nothing. If Discord refuses because the thread is archived, it is unarchived and the call retried, and it stays open afterwards. Unarchiving a locked thread needs Manage Threads. Requires the Manage Threads permission, unless the bot created the private thread. Returns a confirmation. Use discord_add_thread_member to add someone back.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | ID (snowflake) of the thread: public, private, announcement, or a forum post. |
user_id * | string | Discord user ID (snowflake) of the member. |
discord_bulk_delete_messages
Permanently delete up to 100 messages in a channel or thread, chosen by ID. IRREVERSIBLE. SAFE BY DEFAULT: dry_run is true unless explicitly set to false. Preview first: count lists the most recent messages, message_ids checks which of those IDs are in this channel. Both return would_delete, the messages a real call would delete, with each one's id, author_id, created_at and older_than_14_days, and not_deletable, the ones the bot may not delete: a system message, or another member's without Manage Messages. Then re-call with dry_run:false and the reviewed IDs as message_ids; a real call refuse…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread to delete messages from. |
count | integer | Preview only: list the N most recent messages (2-100) as would_delete. A real call refuses it. |
dry_run | boolean | If true (default), deletes nothing and returns would_delete. Set false, with message_ids, to delete. |
message_ids | array | IDs (snowflakes) of the messages to delete, 1-100 distinct. A dry run reports which are in this channel; a real call deletes only those. |
discord_send_embed
Send a single rich embed (title, description, color, fields, author, footer, images, timestamp). Set content to add plain text above the embed in the same message. Use discord_send_message for plain text, or discord_send_multiple_embeds to send several embeds at once. Requires the Embed Links and Send Messages permissions (or Send Messages in Threads for a thread). Returns the new message ID. For a DM, use discord_send_dm_embed.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the target channel or thread. |
author | object | Author block shown at the top of the embed. |
color | string | Side-bar color as a hex string, e.g. '#5865F2'. |
content | string | Optional plain text shown above the embed (max 2000 characters). |
description | string | Main body text of the embed (supports Markdown). |
fields | array | Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row). |
footer | string | Footer text shown at the bottom of the embed. |
image_url | string | Large image shown below the embed body. |
thumbnail_url | string | Small image shown in the top-right corner. |
timestamp | boolean | If true, stamp the embed with the current time. |
title | string | Embed title shown in bold at the top. |
url | string | URL that makes the title clickable. |
discord_edit_embed
Replace the embed on a message previously sent by this bot. Only this bot's messages can be edited. This is a full replace, not a merge: provided fields are applied and omitted fields are dropped from the embed. Requires the View Channel, Read Message History and Embed Links permissions. Returns a confirmation. It keeps the message's text; use discord_edit_message to change the text, discord_edit_dm_embed for a DM, or discord_edit_webhook_message for a webhook's message.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the message. |
message_id * | string | ID of the message to edit. Must be a message authored by this bot (an embed is added if it has none). |
author | object | Author block shown at the top of the embed. |
color | string | Side-bar color as a hex string, e.g. '#5865F2'. |
description | string | Main body text of the embed (supports Markdown). |
fields | array | Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row). |
footer | string | Footer text shown at the bottom of the embed. |
image_url | string | Large image shown below the embed body. |
thumbnail_url | string | Small image shown in the top-right corner. |
timestamp | boolean | If true, stamp the embed with the current time. |
title | string | Embed title shown in bold at the top. |
url | string | URL that makes the title clickable. |
discord_send_multiple_embeds
Send up to 10 embeds in a single message, with optional text above them. Use discord_send_embed for a single embed. Requires the Embed Links and Send Messages permissions (or Send Messages in Threads for a thread). Returns the new message ID. For text with no embed, use discord_send_message.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the target channel or thread. |
embeds * | array | Array of embed objects to send (max 10). |
content | string | Optional plain text shown above the embeds (max 2000 characters). |
discord_delete_message
Permanently delete one specific message. IRREVERSIBLE. Requires the View Channel and Read Message History permissions to find the message. The bot can then delete its own messages; deleting another user's message also requires the Manage Messages permission. Use discord_bulk_delete_messages to remove many at once. Discord does not record a reason for a single message delete in the audit log. Use discord_delete_dm for a DM, or discord_delete_webhook_message to delete a webhook's message with its token.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the message. |
message_id * | string | ID of the message to delete. |
reason | string | Optional. Not recorded: Discord keeps no audit log reason for a single message delete. |
discord_pin_message
Pin or unpin a message in a channel, controlled by the pin flag. Requires the Pin Messages and Read Message History permissions (Pin Messages is a dedicated permission since early 2026, separate from Manage Messages). A channel holds at most 250 pins. Idempotent: pinning an already-pinned message (or unpinning an unpinned one) has no additional effect. List the pins with discord_fetch_pinned_messages.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the message. |
message_id * | string | ID of the message to pin or unpin. |
pin * | boolean | true to pin the message, false to unpin it. |
discord_search_messages
Keyword search over a channel's recent messages using case-insensitive substring matching. Scans only up to the last 100 messages; it does not search full history. Returns { matches: [...] } with id, author, content, timestamp, and the text of any embeds. Matching checks message content only, so a word that appears only in an embed is not found. Requires the View Channel and Read Message History permissions; without Read Message History an empty scan fails with an error naming the permission. Use discord_read_messages to fetch recent messages without filtering. To search full history, in one c…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread to search. |
keyword * | string | Case-insensitive substring to match within message content. |
limit | integer | Max number of recent messages to scan (1–100). Default 100. |
discord_search_guild_messages
Search for messages across all channels in a guild using Discord's native search API. Returns at most 25 messages matching the query with channel context, with no way to page past them. Age-restricted (NSFW) channels are left out. Requires the Read Message History permission and the Message Content privileged intent, enabled in the Developer Portal. While Discord is still building the server's search index, the call fails and says how many seconds to wait. Use discord_search_messages for a substring scan of one channel's last 100 messages. To read the messages around a hit, use discord_read_me…
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
query * | string | Search query (case-insensitive). |
author_id | string | Optional. Only show messages from this user ID. |
channel_id | string | Optional. Restrict search to this channel ID. |
limit | integer | Max messages to return (1–25). Default 25. |
discord_crosspost_message
Publish (crosspost) a message from an Announcement channel to every server that follows it. Only works in announcement channels; a message that was already published returns a success and is not published again. Requires the Read Message History and Send Messages permissions (and Manage Messages for messages authored by others). Returns a confirmation. Use discord_forward_message to copy one message into another channel, or discord_follow_announcement_channel to subscribe a channel to future publications.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the announcement channel containing the message. |
message_id * | string | ID of the message to publish to followers. |
discord_remove_reactions
Remove reactions from a message. With no emoji: removes ALL reactions. With emoji only: removes every reaction of that emoji. With emoji and user_id: removes that one user's reaction. user_id without emoji is rejected. Requires the Read Message History permission to look the message up. Removing all reactions, every reaction of one emoji, or another user's reaction requires the Manage Messages permission. Use discord_add_reaction to add.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the message. |
message_id * | string | ID of the message to remove reactions from. |
emoji | string | Unicode emoji or custom emoji 'name:id'. Omit to remove ALL reactions on the message. |
user_id | string | Remove only this user's reaction for the given emoji. Requires emoji: the call is rejected without it. |
discord_get_reactions
List the users who reacted to a message with a specific emoji. Returns { reactions: [...], hasMore, nextAfter } with id, username, bot flag, ordered by user ID. Returns 25 users by default and at most 100 per call; while hasMore is true pass nextAfter back as `after` for the next page. A reaction added while paging is missed if the user's ID sorts before the cursor. Super reactions are not listed. Fails when no one reacted with that emoji. Requires the View Channel and Read Message History permissions. For the votes of a native poll, use discord_get_poll_voters.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the message. |
emoji * | string | Unicode emoji or custom emoji 'name:id' to list reactors for. |
message_id * | string | ID of the message to inspect. |
after | string | Pagination cursor: a user ID (snowflake). Pass the previous response's nextAfter to fetch the next page. |
limit | integer | Max users to return (1–100). Default 25. |
discord_get_message_attachments
List the file attachments of a message. Returns { attachments: [...] } with id, filename, title (the original name when Discord strips non-ASCII from filename), url, proxyUrl, contentType, size in bytes, width, height, alt-text description, voice-message duration and waveform, spoiler flag. Discord signs CDN urls with a 24-hour expiry and does not re-sign on every fetch; re-call this tool if a stored url has expired. Requires the View Channel and Read Message History permissions. Without the Message Content privileged intent, enabled in the Developer Portal, Discord returns no attachments for…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the message. |
message_id * | string | ID of the message whose attachments to list. |
discord_fetch_pinned_messages
List a channel's pinned messages, most recently pinned first. Returns { messages: [...], hasMore, nextBefore } with id, author, content, timestamp, pinnedAt, and the text of any embeds. Discord serves at most 50 pins per call, so when hasMore is true pass nextBefore back as `before` to fetch the next page. Requires the View Channel and Read Message History permissions; without Read Message History an empty result fails with an error naming the permission. Use discord_pin_message to change which messages are pinned, or discord_read_messages to read the whole channel.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread to list pins from. |
before | string | Pagination cursor: an ISO timestamp compared against when a message was pinned, not when it was sent. Pass the previous response's nextBefore to fetch older pins. |
limit | integer | Max pins per page (1–50). Default 50. |
discord_forward_message
Forward an existing message to another channel using Discord's native forward, which links back to the original message. The forward carries a snapshot of the content, embeds and attachments, without the original author. Works across text channels and threads. Discord forwards only regular messages, replies and command responses, not polls, and refuses a message whose content the bot cannot read (error 160014). Use discord_send_message to compose new content instead. Requires the View Channel and Read Message History permissions in the source channel (and Send Messages for the target channel,…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread containing the source message. |
message_id * | string | ID of the message to forward. |
target_channel_id * | string | ID (snowflake) of the destination channel or thread. |
discord_create_channel
Create a text channel, voice channel, or category in a server. Requires the Manage Channels permission. For forum channels use discord_create_forum_channel instead. Returns the new channel's name and ID.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake) to create the channel in. |
name * | string | Name of the new channel (max 100 characters). |
category_id | string | Optional category (snowflake) to nest the new channel under. |
topic | string | Optional channel topic/description. Applies to text channels only. |
type | string | Channel type to create. Defaults to 'text'. |
discord_delete_channel
Permanently delete a channel and all of its messages. IRREVERSIBLE. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview, then re-call with dry_run:false to actually delete. A real call can first ask the user to confirm; without a yes it changes nothing, says so, and should not be repeated unless the user asks. Deleting a category keeps its channels, which leave the category. A DM channel ID only closes the DM, which is reversible. Requires the Manage Channels permission (or Manage Threads for a thread). An optional reason is recorded in the audit log. d…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to delete. |
dry_run | boolean | If true (default), only reports which channel would be deleted without deleting it. Set false to actually delete. |
reason | string | Optional reason recorded in the server audit log. |
discord_edit_channel
Update a channel's name, topic, slowmode, or NSFW flag. Only provided fields change. This tool sends topic and slowmode for plain text channels only; on every other type, announcement channels included, it ignores them without an error. Requires the Manage Channels permission. Returns a confirmation.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to edit. |
name | string | New channel name (max 100 characters). |
nsfw | boolean | Mark (true) or unmark (false) the channel as age-restricted (NSFW). |
slowmode | integer | Per-user message cooldown in seconds, 0–21600. 0 disables slowmode (text channels only, not announcement). |
topic | string | New topic/description (text channels only, not announcement). |
discord_move_channel
Move a channel into a category, or remove it from its category when category_id is omitted. Requires the Manage Channels permission. Use discord_set_channel_position to reorder within a category. Returns a confirmation.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to move. |
category_id | string | Target category (snowflake). Omit to move the channel out of any category. |
discord_clone_channel
Create a copy of a channel, including its name, topic, and permission overwrites (but not its messages). Requires the Manage Channels permission (and View Channel on the source): the tool refuses a source the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns the cloned channel's name and ID. To give an existing channel the same overwrites, use discord_copy_permissions.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to clone. |
new_name | string | Optional name for the clone. Defaults to the source channel's name. |
discord_set_channel_position
Set a channel's display order among the channels of its kind in its category. Text, announcement, forum and media channels sort together, voice and stage channels together, and categories among categories. A position equal to or above the number of channels in that group leaves the order unchanged. Use discord_move_channel to change which category it belongs to. Requires the Manage Channels permission. Returns a confirmation.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to reposition. |
position * | integer | Zero-based position among the channels of its kind in the category (0 = top). |
discord_follow_announcement_channel
Subscribe a target channel to an announcement (news) channel, so the source's published messages are reposted into the target. The source must be an announcement channel. Requires the Manage Webhooks permission in the target. Returns a confirmation. Use discord_crosspost_message to publish one message to followers, or discord_forward_message to copy a single message once.
| Parameter | Type | Description |
|---|---|---|
source_channel_id * | string | ID (snowflake) of the announcement channel to follow. |
target_channel_id * | string | ID (snowflake) of the channel that will receive published messages. |
discord_lock_channel_permissions
Reset a channel's permission overwrites to exactly match its parent category (Discord's 'sync permissions'). The channel must be inside a category. Requires the Manage Channels and Manage Roles permissions (and View Channel on the category): the tool refuses a category the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns a confirmation. Use discord_reset_channel_permissions to remove every overwrite, or discord_copy_permissions to copy another channel's.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to sync with its parent category. |
discord_get_channel_permissions
List every permission overwrite on a channel, per role and per member, with the allowed and denied permission flags for each. Read-only. Refuses a channel that Discord hides from the bot behind the placeholder name ___hidden___: Discord shows a placeholder in place of its real overwrites. Reading such a channel requires the View Channel permission. Use discord_audit_permissions for a server-wide report across all channels.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to inspect. |
discord_set_role_permission
Add or update a per-channel permission overwrite for a role, allowing and/or denying specific permissions. Merges with the role's existing overwrite (does not reset it). Denying View Channel to @everyone on a channel also hides it from the bot, unless the bot has Administrator or a View Channel allow overwrite there, on its own member or on one of its roles. Grant that allow first, for example with discord_set_member_permission, then deny. Requires the Manage Roles permission. Use discord_set_member_permission to target a single member instead. To change a role's permissions across the whole s…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to set the overwrite on. |
role_id * | string | ID (snowflake) of the role to grant/deny permissions for. |
allow | Permission flag names to allow, e.g. ['SendMessages','ViewChannel'] (or the same array JSON-encoded as a string). Uses Discord PermissionsBitField flag names. | |
deny | Permission flag names to deny, e.g. ['SendMessages'] (or the same array JSON-encoded as a string). | |
reason | string | Optional reason recorded in the server audit log. |
discord_set_member_permission
Add or update a per-channel permission overwrite for a single member, allowing and/or denying specific permissions. Merges with the member's existing overwrite. Requires the Manage Roles permission. Use discord_set_role_permission to target a whole role instead.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to set the overwrite on. |
user_id * | string | ID (snowflake) of the member to grant/deny permissions for. |
allow | Permission flag names to allow, e.g. ['ViewChannel'] (or the same array JSON-encoded as a string). Uses Discord PermissionsBitField flag names. | |
deny | Permission flag names to deny (array, or JSON-encoded array string). | |
reason | string | Optional reason recorded in the server audit log. |
discord_reset_channel_permissions
Remove ALL permission overwrites on a channel, so only role/server-level permissions apply. Does NOT re-sync with the category; use discord_lock_channel_permissions for that. IRREVERSIBLE: the cleared overwrites cannot be recovered. Requires the Manage Channels and Manage Roles permissions. To copy another channel's overwrites instead, use discord_copy_permissions.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel whose overwrites will be cleared. |
reason | string | Optional reason recorded in the server audit log. |
discord_copy_permissions
Replace the target channel's permission overwrites with a copy of the source channel's. The target's existing overwrites are overwritten. Requires the Manage Channels and Manage Roles permissions (and View Channel on the source): the tool refuses a source the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns a confirmation. To create a new channel with the same overwrites, use discord_clone_channel; to remove them all, use discord_reset_channel_permissions. To match the parent category instead, use discord_lock_channel_permissions.
| Parameter | Type | Description |
|---|---|---|
source_channel_id * | string | ID (snowflake) of the channel to copy overwrites from. |
target_channel_id * | string | ID (snowflake) of the channel whose overwrites will be replaced. |
reason | string | Optional reason recorded in the server audit log. |
discord_audit_permissions
Generate a server-wide permission report: for every channel that has overwrites, lists each role/member and their allowed/denied permissions (entity names resolved). Read-only. Returns { channels: [...], hiddenChannels } with channel, channelId, overwrites. Channels that Discord hides from the bot behind the placeholder name ___hidden___ are left out and counted in hiddenChannels: Discord shows a placeholder in place of their real overwrites. Use discord_get_channel_permissions for a single channel.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_list_members
List members of a server with their roles, ordered by user ID. Returns { members: [...], nextCursor }. A page holds up to 1000 members; if nextCursor is non-null, pass it back as `after` to fetch the next page. Use discord_search_members to find specific members by name, or discord_get_member_info for one member's full details. Read-only. Requires the Server Members privileged intent, enabled in the Developer Portal.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
after | string | Pagination cursor: a user ID (snowflake). Pass the previous response's nextCursor to fetch the next page. |
limit | integer | How many members per page (1–1000). Default 50. |
discord_get_member_info
Get full details for one server member: roles, effective permissions, account/join dates, bot flag, and current timeout status. Permissions come from the member's roles, server-wide: channel overwrites are not applied. The owner and Administrators list every flag. The permissions list ignores an active timeout, during which Discord keeps only View Channel and Read Message History. timedOutUntil can be a past date once a timeout has expired. To find a member by name use discord_search_members; to page through members use discord_list_members.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
user_id * | string | Discord user ID (snowflake) of the member. |
discord_kick_member
Remove a member from the server. They can rejoin with a new invite (unlike a ban). Requires the Kick Members permission, and the bot's top role must be higher than the target's. Use discord_ban_member to block re-entry. The reason is recorded in the audit log. To mute them for a while instead, use discord_timeout_member, or discord_prune_members to remove inactive members in bulk.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
user_id * | string | Discord user ID (snowflake) of the member to kick. |
reason | string | Optional reason recorded in the server audit log. |
discord_ban_member
Ban a user from the server, blocking re-entry until unbanned. Optionally bulk-deletes their recent messages. Requires the Ban Members permission, and the bot's top role must outrank the target's. Use discord_unban_member to reverse, or discord_kick_member for a non-permanent removal. The reason is recorded in the audit log. For many users at once, use discord_bulk_ban.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
user_id * | string | Discord user ID (snowflake) of the user to ban. |
delete_message_days | integer | Also delete the user's messages from the last N days (0–7). Default 0 (delete nothing). |
reason | string | Optional reason recorded in the server audit log. |
discord_unban_member
Lift a ban so the user may rejoin via a new invite. Requires the Ban Members permission. Reverses discord_ban_member. The reason is recorded in the audit log. Find banned users with discord_list_bans.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
user_id * | string | Discord user ID (snowflake) of the banned user to unban. |
reason | string | Optional reason recorded in the server audit log. |
discord_timeout_member
Mute a member for a set duration (Discord 'timeout'): they cannot send messages, react, or speak until it expires. Pass duration_minutes = 0 to remove an active timeout early. Max 28 days (40320 minutes). Requires the Moderate Members permission. Discord refuses to time out the server owner or a member with Administrator. To remove the member from the server, use discord_kick_member.
| Parameter | Type | Description |
|---|---|---|
duration_minutes * | integer | Timeout length in minutes (0–40320, i.e. up to 28 days). Use 0 to clear an existing timeout. |
guild_id * | string | Discord server (guild) ID (snowflake). |
user_id * | string | Discord user ID (snowflake) of the member to time out. |
reason | string | Optional reason recorded in the server audit log. |
discord_search_members
Find server members whose username or nickname starts with a query string (prefix match). Returns { members: [...] } with id, username, nickname, roles. Use discord_list_members to page through everyone. Read-only. Use discord_get_member_info for one member's full details.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
query * | string | Prefix to match against usernames and nicknames. |
limit | integer | Max members to return (1–100). Default 25. |
discord_set_nickname
Set or clear a member's server nickname. Pass null (or the string 'null') to clear it. Requires the Manage Nicknames permission (or Change Nickname for the bot itself). To rename another member, their highest role must be below the bot's highest role. The reason is recorded in the audit log.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
nickname * | New nickname (max 32 characters), or null to clear it. | |
user_id * | string | Discord user ID (snowflake) of the member. |
reason | string | Optional reason recorded in the server audit log. |
discord_list_bans
List the users banned from the server, with their ban reasons. Returns { bans: [...], nextCursor }. A page holds up to 1000 bans; if nextCursor is non-null, pass it back as `after` to fetch the next page. Requires the Ban Members permission (or View Audit Log). Read-only. Lift a ban with discord_unban_member.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
after | string | Pagination cursor: a user ID (snowflake). Pass the previous response's nextCursor to fetch the next page. |
limit | integer | Max bans per page (1–1000). Default 1000. |
discord_bulk_ban
Ban many users in a single call, intended for raid mitigation. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview the user IDs a real call would send to Discord, unchecked, then re-call with dry_run:false to actually ban them. A real call can first ask the user to confirm; without a yes it changes nothing, says so, and should not be repeated unless the user asks. Requires both the Ban Members and Manage Server permissions. Returns { dry_run, would_ban } for a preview, and { dry_run, banned, failed } with the user IDs after a real call; failed also list…
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
user_ids * | array | Array of user IDs (snowflakes) to ban (max 200 per call, a Discord API limit). |
delete_message_seconds | integer | Also delete each user's messages from the last N seconds (0–604800, i.e. up to 7 days). Default 0. |
dry_run | boolean | If true (default), returns the user IDs a real call would send, unchecked, and bans no one. Set false to actually ban. |
reason | string | Optional reason recorded in the server audit log. |
discord_prune_members
Remove members who have been inactive (no roles, not seen) for a number of days. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview the count, then re-call with dry_run:false to actually remove them. A real call can first ask the user to confirm; without a yes it changes nothing, says so, and should not be repeated unless the user asks. Removal is irreversible (members must rejoin). Requires the Manage Server and Kick Members permissions (or Administrator instead, on a server with the PRUNE_REQUIRES_ADMIN feature). To remove specific members, use disco…
| Parameter | Type | Description |
|---|---|---|
days * | integer | Inactivity threshold in days (1–30). |
guild_id * | string | Discord server (guild) ID (snowflake). |
dry_run | boolean | If true (default), only returns the count that would be pruned without removing anyone. Set false to actually prune. |
reason | string | Optional reason recorded in the server audit log. |
roles | array | Optional role IDs (snowflakes) to include; by default only members with no roles are counted. A member with roles is counted only when every role they hold is in this list. |
discord_list_roles
List all roles in a server (excluding @everyone), highest-first, with color, position, member count, and permissions. Read-only. Returns { roles: [...] }. Use discord_get_role_members to see who holds a given role.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_create_role
Create a new role in a server. Requires the Manage Roles permission; the new role is placed below the bot's highest role. Use discord_add_role to then assign it to members. Returns the new role's name and ID. To change an existing role, use discord_edit_role.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
name * | string | Name of the new role (max 100 characters). |
color | string | Role color as a hex string, e.g. '#FF5733'. |
hoist | boolean | If true, display members with this role separately in the member list. |
mentionable | boolean | If true, anyone can @mention this role. |
permissions | Server-wide permission flag names to grant, e.g. ['SendMessages','ViewChannel']. Uses Discord PermissionsBitField flag names. |
discord_edit_role
Update an existing role's name, color, permissions, hoist, or mentionable flag. Only provided fields change; passing permissions REPLACES the role's full permission set, and passing color sets a single solid color, removing any gradient or holographic colors. Requires the Manage Roles permission, and the role must be below the bot's highest role. These permissions apply server-wide; for one channel, use discord_set_role_permission. Use discord_set_role_position to move the role, discord_set_role_icon for its icon, or discord_create_role for a new role.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
role_id * | string | ID (snowflake) of the role to edit. |
color | string | New role color as a hex string, e.g. '#FF5733'. |
hoist | boolean | If true, display members with this role separately in the member list. |
mentionable | boolean | If true, anyone can @mention this role. |
name | string | New role name (max 100 characters). |
permissions | Permission flag names. Providing this REPLACES the role's entire permission set. Uses Discord PermissionsBitField flag names. |
discord_delete_role
Permanently delete a role from the server; it is automatically removed from every member who held it. IRREVERSIBLE. Requires the Manage Roles permission, and the role must be below the bot's highest role. To take the role from one member only, use discord_remove_role.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
role_id * | string | ID (snowflake) of the role to delete. |
reason | string | Optional reason recorded in the server audit log. |
discord_add_role
Assign an existing role to a member. Requires the Manage Roles permission, and the role must be below the bot's highest role. Idempotent: assigning a role the member already has has no effect. Use discord_remove_role to undo. Use discord_bulk_add_role for many members, or discord_create_role to create a new role.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
role_id * | string | ID (snowflake) of the role to assign. |
user_id * | string | Discord user ID (snowflake) of the member to give the role to. |
reason | string | Optional reason recorded in the server audit log. |
discord_remove_role
Remove a role from a member. Requires the Manage Roles permission, and the role must be below the bot's highest role. Idempotent: removing a role the member doesn't have has no effect. Reverses discord_add_role. Use discord_bulk_remove_role for many members, or discord_delete_role to delete the role itself.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
role_id * | string | ID (snowflake) of the role to remove. |
user_id * | string | Discord user ID (snowflake) of the member to remove the role from. |
reason | string | Optional reason recorded in the server audit log. |
discord_bulk_add_role
Add one role to up to 50 members in one call. SAFE BY DEFAULT: dry_run is true unless explicitly set to false. A real call can first ask the user to confirm; without a yes it changes nothing, says so, and should not be repeated unless the user asks. Before any change, both modes refuse @everyone, a managed role (bot, integration, booster), a role not below the bot's highest role, and a bot without Manage Roles. The dry run sorts user_ids into would_change, skipped (already have the role) and not_member; a real call sorts them again and changes only would_change, one request each. Discord allow…
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
role_id * | string | ID (snowflake) of the role. |
user_ids * | array | User IDs (snowflakes) of the members, 1-50 distinct. |
dry_run | boolean | If true (default), changes nothing and returns would_change. Set false to change the roles. |
reason | string | Optional reason recorded in the server audit log. |
discord_bulk_remove_role
Remove one role from up to 50 members in one call. SAFE BY DEFAULT: dry_run is true unless explicitly set to false. A real call can first ask the user to confirm; without a yes it changes nothing, says so, and should not be repeated unless the user asks. Before any change, both modes refuse @everyone, a managed role (bot, integration, booster), a role not below the bot's highest role, and a bot without Manage Roles. The dry run sorts user_ids into would_change, skipped (do not have the role) and not_member; a real call sorts them again and changes only would_change, one request each. Discord a…
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
role_id * | string | ID (snowflake) of the role. |
user_ids * | array | User IDs (snowflakes) of the members, 1-50 distinct. |
dry_run | boolean | If true (default), changes nothing and returns would_change. Set false to change the roles. |
reason | string | Optional reason recorded in the server audit log. |
discord_get_role_members
List members who currently hold a specific role, scanning up to 20,000 members. Returns { members: [...], truncated }; check `truncated` on very large servers. Read-only. Use discord_list_roles to discover role IDs first. Requires the Server Members privileged intent, enabled in the Developer Portal.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
role_id * | string | ID (snowflake) of the role to list holders of. |
discord_set_role_position
Move a role up or down in the server's role hierarchy, which determines permission precedence and member-list ordering. Higher position = higher in the list. Requires the Manage Roles permission, and the target position must be below the bot's highest role. To change the role's name, color or permissions, use discord_edit_role.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
position * | integer | New hierarchy position (1 = lowest, just above @everyone, which sits at 0). Higher numbers rank higher. |
role_id * | string | ID (snowflake) of the role to reposition. |
discord_set_role_icon
Set or clear a role's icon, either a custom image or a unicode emoji. Requires the server to be Boost Level 2+ (the ROLE_ICONS feature) and the Manage Roles permission. Pass null to either field to remove that icon. Returns a confirmation. To change the role's name, color or permissions, use discord_edit_role.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
role_id * | string | ID (snowflake) of the role to set the icon on. |
icon | Image URL for the role icon, or null to remove it. | |
unicode_emoji | string | null | Unicode emoji to use as the role icon, or null to remove it. |
discord_get_audit_log
Fetch the server's audit log, the record of administrative actions (bans, kicks, role/channel changes, etc.) with who performed them and when. Requires the View Audit Log permission. Returns { entries: [...] } with id, action, executor, target, reason, createdAt. Read-only.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
action_type | integer | Optional Discord AuditLogEvent numeric ID to filter by. Common IDs: 12 = ChannelDelete, 20 = MemberKick, 22 = MemberBanAdd, 23 = MemberBanRemove, 24 = MemberUpdate (nickname, timeout), 25 = MemberRole… |
limit | integer | How many recent entries to fetch (1–100). Default 25. |
discord_get_membership_screening
Fetch the server's membership screening form, the rules/questions new members must accept before gaining access. Requires the server to have the Community feature enabled. Read-only. Returns { version, description, form_fields } with each field's type, label, values, required flag and description; any other key Discord returns on a field is dropped. Change it with discord_update_membership_screening.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_update_membership_screening
Update the server's membership screening form: set the welcome description and the rules new members must agree to. Only provided fields change. Passing form_fields replaces every existing field with TERMS rule blocks, which deletes any question field. Read the form first with discord_get_membership_screening. Requires the Community feature and the Manage Server permission. Returns the updated form.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
description | string | Welcome message shown at the top of the screening form. |
form_fields | array | Rules/agreement blocks new members must accept. Replaces the existing fields when provided. |
discord_get_server_stats
Get a snapshot of server metrics: total members (humans vs cached bots), channel breakdown (text/voice/category), role count, boost tier and count, and creation date. Note: bots are counted from the member cache only, so botsInCache is a lower bound and humans (total minus cached bots) an upper bound. The roles count excludes @everyone. In channels, total covers every channel type plus the threads in the bot's cache, while text counts only text channels (not announcement), voice only voice channels (not stage), and categories only categories. With DISCORD_GUILD_MEMBERS=false, totalMembers is n…
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_get_forum_channels
List the forum channels in a server (id, name, topic, parent category). From November 16, 2026, Discord leaves out forums the bot cannot view. Read-only. Use discord_get_forum_tags to see a forum's available tags, or discord_list_forum_threads for its posts. discord_list_channels lists forums too, along with every other channel.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_create_forum_channel
Create a new forum channel in a server. A forum holds posts (threads) rather than a linear message feed. Requires the Manage Channels permission. Use discord_create_channel for text/voice channels instead. Returns the new channel's name and ID.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
name * | string | Name of the new forum channel (max 100 characters). |
category_id | string | Optional category (snowflake) to nest the forum under. |
topic | string | Guidelines/topic text shown at the top of the forum. |
discord_create_forum_post
Create a new post (a thread with a starter message) in a forum channel. Requires the Send Messages permission (Discord ignores Create Public Threads for forum posts). Use discord_reply_to_forum to add follow-up messages. Returns the new post's name and thread ID. Find tag IDs with discord_get_forum_tags; for a thread in a text channel, use discord_create_thread.
| Parameter | Type | Description |
|---|---|---|
content * | string | Body of the post's starter message (max 2000 characters). |
forum_channel_id * | string | ID (snowflake) of the forum channel to post in. |
title * | string | Title of the post, used as the thread name (max 100 characters). |
applied_tags | array | Optional tag IDs to apply. Get valid IDs from discord_get_forum_tags. |
discord_get_forum_post
Get a forum post's details (title, archived/locked state, applied tags, message count) plus its recent messages, oldest-to-newest. Read-only. Pass the post's thread_id. Requires the View Channel and Read Message History permissions on the forum; without Read Message History an empty message list fails with an error naming the permission. Returns a JSON object. Find posts with discord_list_forum_threads; to page through a long post, use discord_read_messages with its thread ID.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | ID (snowflake) of the forum post (thread). |
limit | integer | How many recent messages to include (1–100). Default 20. |
discord_list_forum_threads
List posts in a forum channel. Returns { threads: [...], hasMore, nextBefore }. The first call (no `before`) includes all active posts plus the first page of archived posts; archived posts are paginated, so if hasMore is true pass nextBefore back as `before` to fetch older archived posts. messageCount excludes the starter message and deleted messages, and is inaccurate above 50 for threads created before July 1, 2022. Use discord_get_forum_post to read one post's messages. For threads in a text or announcement channel, use discord_list_channel_threads. Find forum IDs with discord_get_forum_cha…
| Parameter | Type | Description |
|---|---|---|
forum_channel_id * | string | ID (snowflake) of the forum channel to list posts from. |
before | string | Pagination cursor: an ISO timestamp. Pass the previous response's nextBefore to fetch older archived posts. When set, active posts are omitted. |
limit | integer | Max archived posts per page (2–100). Default 100. |
discord_reply_to_forum
Post a follow-up message inside an existing forum post (thread). Requires the Send Messages in Threads permission (shown as 'Send Messages in Posts' for forums). Use discord_create_forum_post to start a new post instead. Returns the new message ID. Works on any thread, not only forum posts, and adds no reply reference: discord_send_message with the thread ID does the same. To quote a message, use discord_reply_message.
| Parameter | Type | Description |
|---|---|---|
content * | string | Plain-text body of the reply (max 2000 characters). |
thread_id * | string | ID (snowflake) of the forum post (thread) to reply in. |
discord_delete_forum_post
Permanently delete a forum post (thread) and all its messages. IRREVERSIBLE. To merely close it without deleting, use discord_update_forum_post with archived:true. Requires the Manage Threads permission. It accepts any thread and deletes it at once, with no dry run; discord_delete_channel deletes a thread too, with a dry run by default.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | ID (snowflake) of the forum post (thread) to delete. |
discord_get_forum_tags
List the tags available on a forum channel (id, name, emoji, emoji_id, moderated flag). Use these IDs with discord_create_forum_post or discord_update_forum_post; manage the tag set with discord_set_forum_tags. The emoji field holds a unicode emoji, or null when the tag has none or uses a custom server emoji. Fails when the channel is not a forum. Find forum IDs with discord_get_forum_channels.
| Parameter | Type | Description |
|---|---|---|
forum_channel_id * | string | ID (snowflake) of the forum channel to read tags from. |
discord_set_forum_tags
Replace the full set of available tags on a forum channel with the provided list. Include every tag you want to keep: a listed tag whose name matches an existing tag (case-insensitive) keeps its ID and stays on posts, and keeps its emoji and moderated flag unless the input sets them. A tag left out is deleted from the forum, and posts that carried it keep its ID in applied_tags. Requires the Manage Channels permission. Returns a confirmation naming the tags created, deleted and changed, with the fields that changed. Read the current tags with discord_get_forum_tags first, and apply tags to a p…
| Parameter | Type | Description |
|---|---|---|
forum_channel_id * | string | ID (snowflake) of the forum channel to set tags on. |
tags * | array | Complete list of tags to set (replaces all existing tags). |
discord_update_forum_post
Update a forum post's title, archived/locked state, or applied tags. Only provided fields change; passing applied_tags replaces the post's tags. Set archived:true to close a post without deleting it; archiving a pinned post unpins it. Requires the Manage Threads permission. To change which tags the forum offers, use discord_set_forum_tags; this tool picks among the forum's existing tags for one post. Find tag IDs with discord_get_forum_tags; to remove a post for good, use discord_delete_forum_post.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | ID (snowflake) of the forum post (thread) to update. |
applied_tags | array | Tag IDs to apply; replaces the post's current tags. Get valid IDs from discord_get_forum_tags. |
archived | boolean | true to archive (close) the post, false to reopen it. |
locked | boolean | true to lock the post so only moderators can reply. |
title | string | New title/thread name (max 100 characters). |
discord_create_webhook
Create a webhook on a channel and return its ID and token. SECURITY: the returned token grants anyone the ability to post as this webhook without authentication; treat it as a secret. Requires the Manage Webhooks permission. Use the returned id+token with discord_send_webhook_message. On a forum or media channel, discord_send_webhook_message cannot post through the webhook, since Discord then requires a thread. To reuse an existing webhook, find it with discord_list_webhooks.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to attach the webhook to. |
name * | string | Display name for the webhook (max 80 characters). |
avatar | string | Optional avatar image URL for the webhook. |
discord_send_webhook_message
Send a message through a webhook using its ID and token (no bot permissions needed; the token authorizes the send). Supports per-message username/avatar overrides and up to 10 embeds. At least one of content or embeds is required. Returns the new message ID. Get the ID and token from discord_create_webhook or discord_list_webhooks; to post as the bot itself, use discord_send_message.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | ID (snowflake) of the webhook to send through. |
webhook_token * | string | Secret token of the webhook (from discord_create_webhook or discord_list_webhooks). |
avatar_url | string | Override the webhook's default avatar for this message. |
content | string | Plain-text body of the message (max 2000 characters). Optional if embeds are provided. |
embeds | array | Up to 10 embed objects to attach to the webhook message. |
username | string | Override the webhook's default display name for this message. |
discord_edit_webhook
Update a webhook's name, avatar, or the channel it posts to. Only provided fields change. Requires the Manage Webhooks permission. Returns a confirmation. To edit a message the webhook sent, use discord_edit_webhook_message.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | ID (snowflake) of the webhook to edit. |
avatar | string | New avatar image URL for the webhook. |
channel_id | string | ID (snowflake) of a channel to move the webhook to. |
name | string | New display name for the webhook (max 80 characters). |
discord_delete_webhook
Permanently delete a webhook by its ID, invalidating its token. IRREVERSIBLE: any integrations using the old token will stop working. Requires the Manage Webhooks permission. To remove one message the webhook sent, use discord_delete_webhook_message instead; discord_list_webhooks finds the ID.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | ID (snowflake) of the webhook to delete. |
discord_list_webhooks
List the webhooks in a single channel or across a whole server (id, name, channel, token when visible, creator). Provide channel_id or guild_id; when both are given, only channel_id is used. Requires the Manage Webhooks permission. SECURITY: a returned token lets anyone post as that webhook; treat it as a secret. Pass the id and token to discord_send_webhook_message, or create a webhook with discord_create_webhook. Remove one with discord_delete_webhook.
| Parameter | Type | Description |
|---|---|---|
channel_id | string | ID (snowflake) of a channel to list webhooks for. Takes precedence over guild_id. |
guild_id | string | Discord server (guild) ID (snowflake) to list all webhooks for. Ignored when channel_id is given. |
discord_edit_webhook_message
Edit a message previously sent through a webhook, using the webhook's ID and token. Replaces the provided fields. No bot permission is needed: the token authorizes the edit. For a message the bot sent itself, use discord_edit_message or discord_edit_embed. Returns a confirmation. To change the webhook itself, use discord_edit_webhook.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | ID of the webhook message to edit. |
webhook_id * | string | ID (snowflake) of the webhook that sent the message. |
webhook_token * | string | Secret token of the webhook. |
content | string | New plain-text content for the message (max 2000 characters). |
embeds | array | Up to 10 embed objects to attach to the webhook message. |
discord_delete_webhook_message
Permanently delete a message that was sent through a webhook, using the webhook's ID and token. IRREVERSIBLE. No bot permission is needed: the token authorizes the call. To delete the webhook itself, use discord_delete_webhook. To delete a message with the bot's own permissions, use discord_delete_message.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | ID of the webhook message to delete. |
webhook_id * | string | ID (snowflake) of the webhook that sent the message. |
webhook_token * | string | Secret token of the webhook. |
discord_fetch_webhook_message
Fetch a single message sent through a webhook (id, content, embed count, timestamp), using the webhook's ID and token. Read-only. Requires the original webhook token.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | ID of the webhook message to fetch. |
webhook_id * | string | ID (snowflake) of the webhook that sent the message. |
webhook_token * | string | Secret token of the webhook. |
discord_list_scheduled_events
List all scheduled events in a server (id, name, status, type, time, location, interested count). Read-only. Use discord_get_scheduled_event for one event's full details.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_get_scheduled_event
Get full details for one scheduled event: name, description, status, type, channel/location, start/end times, creator, and interested-user count. Status is SCHEDULED, ACTIVE, COMPLETED or CANCELED, and entity_type is VOICE, STAGE_INSTANCE or EXTERNAL. Find the event_id with discord_list_scheduled_events; list the interested users with discord_get_event_subscribers.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | ID (snowflake) of the scheduled event. |
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_create_scheduled_event
Create a scheduled event. For 'VOICE'/'STAGE_INSTANCE' events provide channel_id; for 'EXTERNAL' events provide location AND scheduled_end_time. Requires the Create Events permission (Manage Events alone no longer suffices), plus View Channel and Connect in the channel for VOICE events, or Manage Channels, Mute Members and Move Members for STAGE_INSTANCE events. Returns the new event's name and ID. To change, start or cancel an existing event, use discord_edit_scheduled_event.
| Parameter | Type | Description |
|---|---|---|
entity_type * | string | Where the event happens: 'VOICE' or 'STAGE_INSTANCE' (needs channel_id), or 'EXTERNAL' (needs location + scheduled_end_time). |
guild_id * | string | Discord server (guild) ID (snowflake). |
name * | string | Event name (max 100 characters). |
scheduled_start_time * | string | Event start as an ISO 8601 datetime, e.g. '2026-06-01T20:00:00Z'. Must be in the future. |
channel_id | string | Voice or stage channel ID (snowflake). Required for VOICE/STAGE_INSTANCE events. |
description | string | Optional event description (max 1000 characters). |
image | string | Optional cover image URL. |
location | string | Free-text location (e.g. a URL or place). Required for EXTERNAL events. |
scheduled_end_time | string | Event end as an ISO 8601 datetime. Required for EXTERNAL events. |
discord_edit_scheduled_event
Update a scheduled event; only provided fields change. Use the status field to start ('ACTIVE'), end ('COMPLETED'), or cancel ('CANCELED') an event; Discord only allows certain status transitions. Discord rejects a location on VOICE and STAGE_INSTANCE events. An ACTIVE voice or stage event ends on its own a few minutes after its channel empties. Requires the Manage Events permission (or Create Events for an event the bot created), plus the same channel permissions as creating it. Use discord_create_scheduled_event for a new event, or discord_delete_scheduled_event to remove one for good.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | ID (snowflake) of the event to edit. |
guild_id * | string | Discord server (guild) ID (snowflake). |
channel_id | string | New voice/stage channel ID (snowflake) for VOICE/STAGE_INSTANCE events. |
description | string | New event description (max 1000 characters). |
image | string | New cover image URL. |
location | string | New free-text location for EXTERNAL events. |
name | string | New event name (max 100 characters). |
scheduled_end_time | string | New end time as an ISO 8601 datetime. |
scheduled_start_time | string | New start time as an ISO 8601 datetime. |
status | string | Change event status. Allowed transitions only: SCHEDULED→ACTIVE→COMPLETED, or SCHEDULED→CANCELED (no transition back to SCHEDULED exists). |
discord_delete_scheduled_event
Permanently delete a scheduled event. IRREVERSIBLE. To cancel an event while keeping a record, use discord_edit_scheduled_event with status:'CANCELED' instead. Requires the Manage Events permission (or Create Events for an event the bot created), plus the same channel permissions as creating it.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | ID (snowflake) of the event to delete. |
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_get_event_subscribers
List the users who marked themselves 'Interested' in a scheduled event. Returns { subscribers: [...], nextCursor }. A page holds up to 100 users; if nextCursor is non-null, pass it back as `after` to fetch the next page. Read-only. Use discord_get_scheduled_event for the event's details.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | ID (snowflake) of the scheduled event. |
guild_id * | string | Discord server (guild) ID (snowflake). |
after | string | Pagination cursor: a user ID (snowflake). Pass the previous response's nextCursor to fetch the next page. |
limit | integer | Max subscribers per page (1–100). Default 25. |
discord_create_event_invite
Create a shareable invite URL that points to a scheduled event, so recipients land on the event when joining. Requires the Create Instant Invite permission. Returns the invite URL; Discord may reuse a similar existing invite instead of creating a new one. EXTERNAL events need channel_id; other events reject it and use their own channel. The URL is an ordinary channel invite with ?event=<event ID> appended. Use discord_create_invite for a channel invite with the unique or temporary options.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | ID (snowflake) of the scheduled event to link the invite to. |
guild_id * | string | Discord server (guild) ID (snowflake). |
channel_id | string | Channel (snowflake) the invite points to. Required for EXTERNAL events, which have no channel of their own. Omit it for VOICE and STAGE_INSTANCE events: they always use their own channel, and passing… |
max_age | integer | Invite lifetime in seconds, 0–604800 (7 days); 0 means it never expires. Default 86400 (24h). |
max_uses | integer | Maximum number of uses, 0–100; 0 means unlimited. Default 0. |
discord_list_invites
List all active invites across a server (code, url, channel, inviter, uses, expiry). Requires the Manage Server permission (or View Audit Log); without Manage Server or Manage Channels, Discord omits invite metadata, so uses, max_uses and max_age read 0, temporary reads false and created_at null. Read-only. Use discord_list_channel_invites to scope to one channel. Look up one code with discord_get_invite, or revoke one with discord_delete_invite.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server (guild) ID (snowflake). |
discord_get_invite
Look up a single invite by its code: target server and channel, inviter, and expiry. Works for any public invite, limited to the DISCORD_ALLOWED_GUILDS servers when that allow-list is set. This endpoint never returns invite metadata (uses/max_uses/max_age read 0, temporary reads false and created_at null); use discord_list_invites or discord_list_channel_invites for real counters. Read-only. Returns a JSON object.
| Parameter | Type | Description |
|---|---|---|
invite_code * | string | The invite code, e.g. 'abc123'. A full discord.gg/abc123 URL is also accepted and stripped. |
discord_create_invite
Create an invite link for a channel, optionally limiting its lifetime, uses, and membership type. SECURITY: anyone with the returned link can join the server. Requires the Create Instant Invite permission. Returns the invite URL and code. For an invite that opens a scheduled event, use discord_create_event_invite.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel the invite leads to. |
max_age | integer | Invite lifetime in seconds, 0–604800 (7 days); 0 means it never expires. Default 86400 (24h). |
max_uses | integer | Maximum number of uses, 0–100; 0 means unlimited. Default 0. |
temporary | boolean | If true, members who join via this invite are removed when they disconnect (unless they get a role). Default false. |
unique | boolean | If true, always mint a fresh invite instead of reusing an equivalent existing one. Default false. |
discord_delete_invite
Revoke an invite by its code so it can no longer be used. IRREVERSIBLE (the code is freed). Requires the Manage Channels permission (or Manage Server). The reason is recorded in the audit log. Find codes with discord_list_invites.
| Parameter | Type | Description |
|---|---|---|
invite_code * | string | The invite code to revoke. A full discord.gg/<code> URL is also accepted. |
reason | string | Optional reason recorded in the server audit log. |
discord_list_channel_invites
List the active invites that point to one specific channel. Unlike discord_list_invites (server-wide), this scopes results to a single channel. Requires the Manage Channels permission. Read-only. Look up one code with discord_get_invite.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel to list invites for. |
discord_send_dm
Send a private direct message to a user by their user ID. Use discord_send_message to post in a server channel instead. Requires the bot to share at least one server with the user, and the user must allow DMs from server members (otherwise Discord rejects the send). Returns the new message ID. Use discord_send_dm_embed for an embed, or discord_reply_dm to reply to a message. With DISCORD_ALLOWED_GUILDS set, the user must be a member of a listed server.
| Parameter | Type | Description |
|---|---|---|
content * | string | Plain-text body of the DM (max 2000 characters). |
user_id * | string | Discord user ID (snowflake) of the DM recipient. |
discord_send_dm_embed
Send a rich embed as a private direct message to a user. Use discord_send_dm for plain text, or discord_send_embed to post an embed in a channel. Requires the bot to share a server with the user, and the user must allow DMs from server members. Returns the new message ID. With DISCORD_ALLOWED_GUILDS set, the user must be a member of a listed server.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | Discord user ID (snowflake) of the DM recipient. |
author | object | Author block shown at the top of the embed. |
color | string | Side-bar color as a hex string, e.g. '#5865F2'. |
content | string | Optional plain text shown above the embed (max 2000 characters). |
description | string | Main body text of the embed (supports Markdown). |
fields | array | Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row). |
footer | string | Footer text shown at the bottom of the embed. |
image_url | string | Large image shown below the embed body. |
thumbnail_url | string | Small image shown in the top-right corner. |
timestamp | boolean | If true, stamp the embed with the current time. |
title | string | Embed title shown in bold at the top. |
url | string | URL that makes the title clickable. |
discord_edit_dm
Edit the text content of a DM message previously sent by this bot. Only the bot's own DM messages can be edited. It changes the text and keeps any embed; discord_edit_dm_embed replaces the embed. Returns a confirmation. For a message in a server channel, use discord_edit_message. With DISCORD_ALLOWED_GUILDS set, the user must be a member of a listed server.
| Parameter | Type | Description |
|---|---|---|
content * | string | New plain-text content that fully replaces the existing message (max 2000 characters). |
message_id * | string | ID of the target message within the DM conversation. |
user_id * | string | Discord user ID (snowflake) of the DM recipient. |
discord_edit_dm_embed
Replace the embed on a DM message previously sent by this bot. Full replace, not merge: provided fields are applied and omitted fields are dropped. Omitting content, or passing an empty string, keeps the message's current text; this tool cannot clear it. Use discord_edit_dm to change only the text, or discord_edit_embed for a message in a server channel. Returns a confirmation. With DISCORD_ALLOWED_GUILDS set, the user must be a member of a listed server.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | ID of the target message within the DM conversation. |
user_id * | string | Discord user ID (snowflake) of the DM recipient. |
author | object | Author block shown at the top of the embed. |
color | string | Side-bar color as a hex string, e.g. '#5865F2'. |
content | string | Optional new plain text shown above the embed (max 2000 characters). |
description | string | Main body text of the embed (supports Markdown). |
fields | array | Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row). |
footer | string | Footer text shown at the bottom of the embed. |
image_url | string | Large image shown below the embed body. |
thumbnail_url | string | Small image shown in the top-right corner. |
timestamp | boolean | If true, stamp the embed with the current time. |
title | string | Embed title shown in bold at the top. |
url | string | URL that makes the title clickable. |
discord_delete_dm
Permanently delete a DM message previously sent by this bot. IRREVERSIBLE. The bot can only delete its own DM messages, not the recipient's. Returns a confirmation. For a message in a server channel, use discord_delete_message. With DISCORD_ALLOWED_GUILDS set, the user must be a member of a listed server.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | ID of the target message within the DM conversation. |
user_id * | string | Discord user ID (snowflake) of the DM recipient. |
discord_read_dms
Read the most recent messages from the bot's DM conversation with a user, oldest-to-newest. Returns { messages: [...] } with id, author, content, embed count, timestamp. Read-only, except that Discord opens an empty DM channel when none exists yet; nothing is sent. For a server channel or thread, use discord_read_messages. With DISCORD_ALLOWED_GUILDS set, the user must be a member of a listed server.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | Discord user ID (snowflake) of the DM recipient. |
limit | integer | How many recent messages to fetch (1–100). Default 20. |
discord_reply_dm
Reply to a specific message in a DM, attaching a quoted reply reference. Unlike the edit/delete DM tools, this works on the bot's messages and the user's alike, though Discord refuses some system messages as reply targets. Use discord_send_dm for a standalone DM with no reference. Returns the new reply's message ID. For a message in a server channel, use discord_reply_message. With DISCORD_ALLOWED_GUILDS set, the user must be a member of a listed server.
| Parameter | Type | Description |
|---|---|---|
content * | string | Plain-text body of the reply (max 2000 characters). |
message_id * | string | ID of the target message within the DM conversation. |
user_id * | string | Discord user ID (snowflake) of the DM recipient. |
discord_create_poll
Create a native Discord poll in a channel or thread. Up to 10 answers (55 characters each), a question up to 300 characters, and a duration up to 768 hours (32 days). Requires the Send Polls and Send Messages permissions (or Send Messages in Threads for a thread). Returns the poll message ID. For a message without a poll, use discord_send_message.
| Parameter | Type | Description |
|---|---|---|
answers * | array | 1 to 10 answer options. |
channel_id * | string | ID (snowflake) of the target channel or thread. |
question * | string | Poll question (up to 300 characters). |
allow_multiselect | boolean | Whether voters can pick more than one answer. Default false. |
duration_hours | integer | How long the poll stays open, in hours (1–768, i.e. up to 32 days). Default 24. |
discord_get_poll_results
Read a poll's current question, answers and vote counts. Counts update as people vote and are final once resultsFinalized is true, which Discord sets after the poll expires or discord_end_poll ends it. Requires the View Channel and Read Message History permissions. Read-only. Use discord_get_poll_voters to see who picked an answer.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread. |
message_id * | string | ID of the poll message. |
discord_end_poll
End a poll immediately instead of waiting for its duration to expire. Only the bot's own polls can be ended early. Irreversible: a poll cannot be reopened once ended. A poll that has already ended or expired is returned unchanged. Requires the View Channel and Read Message History permissions. Returns the results; resultsFinalized tells whether Discord has finished counting them. To read the results without ending the poll, use discord_get_poll_results.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID (snowflake) of the channel or thread. |
message_id * | string | ID of the poll message. |
discord_get_poll_voters
List the users who voted for one specific answer of a poll. Returns { voters: [...], hasMore, nextAfter } with id, username, bot flag. Returns 25 voters by default and at most 100 per call; while hasMore is true pass nextAfter back as `after` for the next page. Votes cast while paging can be missed. Use discord_get_poll_results first to find an answer's id. Requires the View Channel and Read Message History permissions. Read-only. For emoji reactions rather than poll votes, use discord_get_reactions.
| Parameter | Type | Description |
|---|---|---|
answer_id * | integer | The answer's numeric id (1 or more), from discord_get_poll_results. |
channel_id * | string | ID (snowflake) of the channel or thread. |
message_id * | string | ID of the poll message. |
after | string | Pagination cursor: a user ID (snowflake). Pass the previous response's nextAfter to fetch the next page. |
limit | integer | Max voters to return (1–100). Default 25. |