discord-server-mcp
v1.1.1Manage Discord servers through your own bots: build, moderate and automate, with previews.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
setup_check
Start here. Shows every configured bot with the servers it is in, what to fix (permissions, role position, intents), invite links, and this tool's settings. With no bot yet it gives the steps to create one.
list_bots
List the configured bots, which one is used by default, and how many servers each is in.
add_bot
Add a Discord bot (several are supported) without the token ever going through the chat. method "box" (default) asks the app to show a private input box; if the app cannot, or the box is closed, it opens a one-time page on this computer (a http://127.0.0.1 link) where the user pastes the token in their browser. The token is checked and saved, and the bot can be used at once. Call it after the user created the bot (setup_check has the steps).
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | Show the requests that would be made without changing anything |
label | string | Name to remember the bot by; default: the bot's username |
method | string | browser = skip the box and give the page link straight away |
use_bot
Choose the default bot (used when a request does not name a server). Tools still pick the right bot automatically when a server is named.
| Parameter | Type | Description |
|---|---|---|
bot * | string | Bot name or id from list_bots |
dry_run | boolean | Show the requests that would be made without changing anything |
remove_bot
Forget a saved bot on this computer (the bot itself stays on Discord and in its servers).
| Parameter | Type | Description |
|---|---|---|
bot * | string | |
confirm | boolean | Must be true to really do this permanent action; without it you get a preview |
dry_run | boolean | Show the requests that would be made without changing anything |
set_server_bot
Choose which bot to use in a server that several configured bots are in (saved on this computer). "auto" goes back to the default bot.
| Parameter | Type | Description |
|---|---|---|
bot * | string | Bot name or id, or "auto" |
server * | string | Server name or id |
dry_run | boolean | Show the requests that would be made without changing anything |
bot_invite_link
The link that adds a bot to a server the user manages (Administrator by default, or chosen permissions).
| Parameter | Type | Description |
|---|---|---|
bot | string | Bot name or id; default bot if empty |
permissions | array |
enable_tools
Turn on more Discord tools for this conversation. Only the core tools are on at first; call this as soon as a task needs one of these packs: automations (role menus, welcome messages with auto-roles, support tickets and their history, the server's own slash commands, staff slash commands (/ban, /lock, /purge…), moderation logs and searching them, staff alerts, support forums, rules (when X happens do Y), member verification, scheduled messages); live (what is happening now, waiting for a reply, mention or join); jobs (background jobs: message backups and restores, roles for many members at o…
| Parameter | Type | Description |
|---|---|---|
packs * | array |
use_tool
Call a Discord tool from a pack by name, with its arguments. Use it when enable_tools turned a pack on but this app does not show the new tools yet.
| Parameter | Type | Description |
|---|---|---|
tool * | string | Tool name, e.g. create_role_menu |
arguments | object | |
dry_run | boolean | Show the requests that would be made without changing anything |
configure
Only when the user asks: change this Discord tool's own settings and save them on this computer: write mode, allowed servers, tool packs on at start, confirmation for permanent actions, default server and the bots' status. Most apply at once; tool groups, read-only mode and the status apply after restarting the app.
| Parameter | Type | Description |
|---|---|---|
allowed_servers | array | Server ids; [] = all |
confirm_permanent_actions | boolean | |
default_server | string | Server id; "" = none |
dry_run | boolean | Show the requests that would be made without changing anything |
online | boolean | false = the bots stay offline |
status | string | |
status_text | string | Bot activity text, e.g. the server name; "" = none |
status_type | string | |
tool_groups | array | Extra tool packs to have on from the start (the core tools are always on); ["all"] = every tool, [] = core only |
write_mode | string |
list_servers
List every Discord server the configured bots can work on (the servers they were invited to): owner, members, which bot and whether it is administrator there, plus the links to add each bot to another server.
| Parameter | Type | Description |
|---|---|---|
bot | string | Use this bot (name or id) instead of choosing automatically |
get_server
Overview of a server: settings, every category with its channels (type, topic, forum tags), roles (top to bottom) and the bot's own permissions. Start here before changing anything.
| Parameter | Type | Description |
|---|---|---|
bot | string | Use this bot (name or id) instead of choosing automatically |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
edit_server
Change server settings: name, description, icon, banner, splash, verification level, default notifications, content filter, AFK, system and rules channels.
| Parameter | Type | Description |
|---|---|---|
afk_channel | string | Voice channel, or "none" |
afk_timeout_seconds | ||
banner | string | Image path or URL (needs boost level 2), or "none" |
bot | string | Use this bot (name or id) instead of choosing automatically |
community | boolean | Turn Community on (needs rules_channel and public_updates_channel; raises verification to low and the content filter to all members if lower). Unlocks onboarding, welcome screen, announcement channels… |
content_filter | string | |
default_notifications | string | |
description | string | Only for Community servers |
dry_run | boolean | Show the requests that would be made without changing anything |
icon | string | Image path or URL, or "none" to remove |
join_messages | boolean | Discord's own welcome message in the system channel when someone joins |
name | string | |
public_updates_channel | string | Community servers only |
reason | string | Reason shown in the server's audit log |
rules_channel | string | Community servers only |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
splash | string | Invite background image path or URL (needs boost level 1), or "none" |
system_channel | string | Channel for join messages, or "none" |
verification_level | string |
create_invite
Create an invite link to a channel.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel name or id |
bot | string | Use this bot (name or id) instead of choosing automatically |
dry_run | boolean | Show the requests that would be made without changing anything |
max_age_hours | number | 0 = never expires |
max_uses | integer | 0 = unlimited |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
temporary | boolean | Kick members who leave without a role |
unique | boolean |
create_category
Create a channel category.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
dry_run | boolean | Show the requests that would be made without changing anything |
overrides | array | Permission overrides, e.g. hide it from @everyone |
position | integer | |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
create_channel
Create a text, announcement, forum, media, voice or stage channel. Inside a category it takes the category's permissions unless overrides are given. Permission names: CreateInstantInvite, KickMembers, BanMembers, Administrator, ManageChannels, ManageGuild, AddReactions, ViewAuditLog, PrioritySpeaker, Stream, ViewChannel, SendMessages, SendTTSMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone, UseExternalEmojis, ViewGuildInsights, Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, UseVAD, ChangeNickname, ManageNicknames, ManageRoles, ManageWebhooks, Man…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
bitrate | integer | Voice: bits per second, e.g. 64000 |
bot | string | Use this bot (name or id) instead of choosing automatically |
category | string | Category name or id |
dry_run | boolean | Show the requests that would be made without changing anything |
forum_default_reaction | string | Forum: unicode emoji added under every post |
forum_layout | string | |
forum_sort | string | |
forum_tags | array | |
nsfw | boolean | |
overrides | array | |
position | integer | |
private | boolean | Hide from @everyone (add overrides to let roles see it) |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
slowmode_seconds | integer | |
topic | string | Topic, or the guidelines of a forum |
type | string | |
user_limit | integer | Voice: 0 = no limit |
edit_channel
Change a channel, category or thread: name, topic, category, position, slowmode, NSFW, voice settings, forum settings.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
bitrate | integer | |
bot | string | Use this bot (name or id) instead of choosing automatically |
category | string | Category name/id, or "none" to take it out of its category |
dry_run | boolean | Show the requests that would be made without changing anything |
forum_default_reaction | string | Unicode emoji, or "none" |
forum_layout | string | |
forum_sort | string | |
name | string | |
nsfw | boolean | |
position | integer | |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
slowmode_seconds | integer | |
sync_permissions | boolean | With category: copy the category's permissions |
topic | string | |
user_limit | integer |
delete_channel
Delete a channel, category or thread. Cannot be undone. Channels inside a deleted category are kept, without category.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
bot | string | Use this bot (name or id) instead of choosing automatically |
confirm | boolean | Must be true to really do this permanent action; without it you get a preview |
dry_run | boolean | Show the requests that would be made without changing anything |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
set_permissions
Set what a role, @everyone or a member can do in a channel or category (allow, deny, or remove the override). Permission names: CreateInstantInvite, KickMembers, BanMembers, Administrator, ManageChannels, ManageGuild, AddReactions, ViewAuditLog, PrioritySpeaker, Stream, ViewChannel, SendMessages, SendTTSMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone, UseExternalEmojis, ViewGuildInsights, Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, UseVAD, ChangeNickname, ManageNicknames, ManageRoles, ManageWebhooks, ManageGuildExpressions, UseApplicationComm…
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
target * | string | Role name/id, "@everyone", or "user:<member>" |
allow | array | |
bot | string | Use this bot (name or id) instead of choosing automatically |
deny | array | |
dry_run | boolean | Show the requests that would be made without changing anything |
merge | boolean | Keep the override's other permissions; false replaces it |
reason | string | Reason shown in the server's audit log |
remove | boolean | Delete this override completely |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
reorder_channels
Put channels in an order. Give the full order of categories (top to bottom), or the channels of one category in order, or both.
| Parameter | Type | Description |
|---|---|---|
bot | string | Use this bot (name or id) instead of choosing automatically |
categories | array | Every category, top to bottom |
channels | array | Channels in the order they should appear |
dry_run | boolean | Show the requests that would be made without changing anything |
move_to_category | string | Also move the listed channels into this category |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
set_forum_tags
Replace the whole tag list of a forum or media channel. Existing tags keep their emoji unless a new one is given.
| Parameter | Type | Description |
|---|---|---|
forum * | string | |
tags * | array | |
bot | string | Use this bot (name or id) instead of choosing automatically |
dry_run | boolean | Show the requests that would be made without changing anything |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
create_forum_post
Create a post in a forum or media channel, with tags, embeds, files and link buttons.
| Parameter | Type | Description |
|---|---|---|
forum * | string | |
title * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
content | string | |
dry_run | boolean | Show the requests that would be made without changing anything |
embeds | array | |
files | array | |
link_buttons | array | |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
slowmode_seconds | integer | |
tags | array | Tag names that exist in the forum |
create_thread
Start a thread in a text or announcement channel, from a message or on its own.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
name * | string | |
auto_archive_minutes | ||
bot | string | Use this bot (name or id) instead of choosing automatically |
dry_run | boolean | Show the requests that would be made without changing anything |
message_id | string | Start the thread from this message |
private | boolean | Private thread (text channels only) |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
read_messages
Read messages of a channel or thread (newest last). Use before/after to page. Embeds are shortened unless full is true.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
after | string | Message id |
before | string | Message id |
bot | string | Use this bot (name or id) instead of choosing automatically |
full | boolean | Show embeds in full: every field's text, colours, footer, author, images and link buttons (to read a post completely or copy its design) |
limit | integer | |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
get_message
Read one message in full (content, embeds, files, reactions).
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
message_id * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
send_message
Send a message to a channel or thread: text, embeds, files/images (local paths or URLs; show one inside an embed with image "attachment://name.png"), link buttons, a poll, a reply, and pings. Nobody is pinged unless listed in ping_roles/ping_users/ping_everyone. To correct a post without the "(edited)" mark, use replace: the new message is sent and the old ones are deleted, and its mentions show without notifying anyone again.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
bot | string | Use this bot (name or id) instead of choosing automatically |
confirm | boolean | With replace, when permanent actions need confirming: true to really send and delete; without it you get a preview |
content | string | |
dry_run | boolean | Show the requests that would be made without changing anything |
embeds | array | |
files | array | |
link_buttons | array | |
notify_again | boolean | With replace: notify the pinged roles and members again (default: no, the mentions only show) |
pin | boolean | |
ping_everyone | boolean | |
ping_roles | array | Roles to ping (name or id) |
ping_users | array | Members to ping |
poll | object | |
publish | boolean | Announcement channels: send to following servers |
replace | array | Ids or links of earlier messages in this channel that this message replaces: they are deleted once it is sent (a clean repost, with no "(edited)" mark) |
reply_to | string | Message id to reply to |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
silent | boolean | Send without push notifications |
suppress_embeds | boolean | Hide link previews |
edit_message
Edit a message the bot sent: text, embeds, link buttons, files (replaces the attachments when given).
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
message_id * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
content | string | New text ("" clears it) |
dry_run | boolean | Show the requests that would be made without changing anything |
embeds | array | |
files | array | |
link_buttons | array | |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
suppress_embeds | boolean |
delete_messages
Delete one or more messages (up to 100). Messages older than 14 days are deleted one by one.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
message_ids * | array | |
bot | string | Use this bot (name or id) instead of choosing automatically |
confirm | boolean | Must be true to really do this permanent action; without it you get a preview |
dry_run | boolean | Show the requests that would be made without changing anything |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
pin_message
Pin or unpin a message.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
message_id * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
dry_run | boolean | Show the requests that would be made without changing anything |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
unpin | boolean |
react
Add reactions to a message, or remove them (the bot's own, someone's, one emoji for everyone, or all).
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel or thread name, id, or message link |
message_id * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
dry_run | boolean | Show the requests that would be made without changing anything |
emojis | array | Unicode emoji, <:name:id>, or a server emoji name |
remove | string | Remove instead: mine, all reactions, every reaction of these emojis, or a user's |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
user | string | For remove "user" |
list_roles
List roles (top to bottom) with colour, permissions and member count hints.
| Parameter | Type | Description |
|---|---|---|
bot | string | Use this bot (name or id) instead of choosing automatically |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
create_role
Create a role. Permission names: CreateInstantInvite, KickMembers, BanMembers, Administrator, ManageChannels, ManageGuild, AddReactions, ViewAuditLog, PrioritySpeaker, Stream, ViewChannel, SendMessages, SendTTSMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone, UseExternalEmojis, ViewGuildInsights, Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, UseVAD, ChangeNickname, ManageNicknames, ManageRoles, ManageWebhooks, ManageGuildExpressions, UseApplicationCommands, RequestToSpeak, ManageEvents, ManageThreads, CreatePublicThreads, CreatePrivateThreads, U…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
color | string | number | |
dry_run | boolean | Show the requests that would be made without changing anything |
icon_emoji | string | Unicode emoji shown next to names (needs boost level 2) |
icon_image | string | Image path or URL (needs boost level 2) |
mentionable | boolean | |
permissions | array | Default: none of its own (members still get what @everyone allows) |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
shown_separately | boolean | Show members with this role in their own group |
edit_role
Edit a role. "permissions" replaces all of them; use add_permissions/remove_permissions to change a few. Permission names: CreateInstantInvite, KickMembers, BanMembers, Administrator, ManageChannels, ManageGuild, AddReactions, ViewAuditLog, PrioritySpeaker, Stream, ViewChannel, SendMessages, SendTTSMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone, UseExternalEmojis, ViewGuildInsights, Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, UseVAD, ChangeNickname, ManageNicknames, ManageRoles, ManageWebhooks, ManageGuildExpressions, UseApplicationCommands,…
| Parameter | Type | Description |
|---|---|---|
role * | string | |
add_permissions | array | |
bot | string | Use this bot (name or id) instead of choosing automatically |
color | string | number | |
dry_run | boolean | Show the requests that would be made without changing anything |
icon_emoji | string | Unicode emoji, or "none" |
icon_image | string | Image path or URL, or "none" |
mentionable | boolean | |
name | string | |
permissions | array | |
reason | string | Reason shown in the server's audit log |
remove_permissions | array | |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
shown_separately | boolean |
delete_role
Delete a role. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
role * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
confirm | boolean | Must be true to really do this permanent action; without it you get a preview |
dry_run | boolean | Show the requests that would be made without changing anything |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
list_members
List server members with their roles. Needs the Server Members Intent enabled for the bot in the Developer Portal (Bot tab).
| Parameter | Type | Description |
|---|---|---|
bot | string | Use this bot (name or id) instead of choosing automatically |
limit | integer | |
role | string | Only members with this role |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
get_member
Details of one member: names, roles, join date, timeout.
| Parameter | Type | Description |
|---|---|---|
member * | string | Id, mention, username, display name, or "bot" |
bot | string | Use this bot (name or id) instead of choosing automatically |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
set_member_roles
Give roles to a member and/or take roles away.
| Parameter | Type | Description |
|---|---|---|
member * | string | |
add | array | |
bot | string | Use this bot (name or id) instead of choosing automatically |
dry_run | boolean | Show the requests that would be made without changing anything |
reason | string | Reason shown in the server's audit log |
remove | array | |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
timeout_member
Time a member out (they cannot talk or react) for a while, or end a timeout with minutes 0.
| Parameter | Type | Description |
|---|---|---|
member * | string | |
minutes * | number | 0 ends the timeout; max 28 days |
bot | string | Use this bot (name or id) instead of choosing automatically |
dry_run | boolean | Show the requests that would be made without changing anything |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
kick_member
Remove a member from the server (they can rejoin with an invite).
| Parameter | Type | Description |
|---|---|---|
member * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
confirm | boolean | Must be true to really do this permanent action; without it you get a preview |
dry_run | boolean | Show the requests that would be made without changing anything |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
ban_member
Ban a user from the server, optionally deleting their recent messages.
| Parameter | Type | Description |
|---|---|---|
user * | string | Member name/id, or a user id of someone not in the server |
bot | string | Use this bot (name or id) instead of choosing automatically |
confirm | boolean | Must be true to really do this permanent action; without it you get a preview |
delete_message_hours | number | |
dry_run | boolean | Show the requests that would be made without changing anything |
reason | string | Reason shown in the server's audit log |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
check_permissions
What a member or role can actually do, on the server or in one channel, after roles and channel overrides. Also answers "who can see this channel?" when only a channel is given.
| Parameter | Type | Description |
|---|---|---|
bot | string | Use this bot (name or id) instead of choosing automatically |
channel | string | |
member | string | |
role | string | |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
search_messages
Search recent messages across the server's text channels, forums' active posts and threads (and their titles) for words or an author.
| Parameter | Type | Description |
|---|---|---|
author | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |
channels | array | Only these channels |
max_results | integer | |
per_channel | integer | How many recent messages to look at per channel |
query | string | Words to find (case-insensitive) |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
import_discord_template
Load a Discord server template from a link (discord.new/CODE or discord.com/template/CODE, as shared on template websites) and return it as a blueprint you can show with preview_blueprint, edit, and build with apply_blueprint. Also gives the template's name, description and how many times it was used.
| Parameter | Type | Description |
|---|---|---|
link * | string | Template link or code |
bot | string | Use this bot (name or id) instead of choosing automatically |
list_templates
List the built-in server templates for apply_blueprint.
| Parameter | Type | Description |
|---|---|---|
bot | string | Use this bot (name or id) instead of choosing automatically |
preview_blueprint
Show a visual preview of a server layout before building it: the channel sidebar as members will see it (categories, channel types, topics, forum tags, private areas), the roles with colours and key permissions, and a grid of who can see and write in each channel. With a server, also marks what is new, already there or moved. Use it to let the user approve or ask for changes; then apply_blueprint.
| Parameter | Type | Description |
|---|---|---|
blueprint | object | |
bot | string | Use this bot (name or id) instead of choosing automatically |
copy_from_server | string | Copy the structure of another server a configured bot is in |
discord_template | string | A Discord server template link (discord.new/… or discord.com/template/…) or its code, e.g. from a template website |
file | string | |
server | string | Compare with this server (what is new / existing) |
template | string | |
update_existing | boolean |
export_server_structure
Export a server's roles, categories, channels, topics, forum tags and permissions as a blueprint (a backup without messages). Optionally save it to a JSON file; apply_blueprint can rebuild from it here or on another server.
| Parameter | Type | Description |
|---|---|---|
bot | string | Use this bot (name or id) instead of choosing automatically |
save_to | string | File path to write the JSON to |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
apply_blueprint
Build or complete a server from a blueprint: a built-in template (list_templates), a saved export (file), or a layout you write (blueprint: {roles, categories:[{name, overrides, channels:[{name, type, topic, slowmode, tags, overrides}]}], channels}). mode "plan" lists the steps without changing anything; "apply" does them. Only what is missing is created, matching names loosely (emojis and dashes ignored), so it is safe to run again to continue. Nothing is deleted.
| Parameter | Type | Description |
|---|---|---|
background | boolean | Apply as a background job (for big layouts); follow it with job_status |
blueprint | object | |
bot | string | Use this bot (name or id) instead of choosing automatically |
copy_from_server | string | Copy the structure of another server a configured bot is in |
discord_template | string | A Discord server template link (discord.new/… or discord.com/template/…) or its code, e.g. from a template website |
dry_run | boolean | Show the requests that would be made without changing anything |
file | string | Path of a blueprint JSON (e.g. from export_server_structure) |
mode | string | |
server | string | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. |
template | string | |
update_existing | boolean | Also move existing channels into the blueprint's categories, update roles that differ and reorder |
job_status
Progress and result of a background job.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
bot | string | Use this bot (name or id) instead of choosing automatically |