deploy_discord_panel
Deploy or update Components V2 panels (flags: 32768) in verified guild channels, send safe test dispatches, or synchronize AI rules channels.
Overview
Publishes or refreshes live Discord Components V2 container messages (built with discord-container-kit using flags: 32768, Type 14 Separators, accent colors, and Discord Unix timestamps) into channels verified to belong to guildId.
Supports ticket_panel, ai_ticket_panel (Panels 1 to 3 only), verification_panel, reaction_role_panel, booster_panel, match_together_lobby, component_builder_item, safe test dispatches (greeting_test, bump_reminder_test, activity_reward_test, starboard_test), and Pro/Enterprise rules channel synchronization (ai_tickets_sync_rules, aimod_sync_rules).
Permissions
- Required Scopes
- mcp:deploy
- Discord Role Access
- Real Admin or active Temp Admin (delegated Component Builder role permitted for component_builder_item).
- Server-Side Guard
- checkManageGuild or checkComponentBuilderAccess + verifyChannelBelongsToGuild + role-delegation check + tier gates
- Subscription Tier
- Matches the target module tier (ai_ticket_panel and rules sync require Pro+; AI Panels 2 and 3 require Enterprise; custom Verification containers require Pro+).
Input Schema
JSON Schema enforced by the server prior to RBAC and tier validation. Unknown properties are rejected strictly.
{
"type": "object",
"properties": {
"guildId": {
"type": "string",
"pattern": "^\\d{17,22}$",
"description": "Discord server (guild) snowflake ID."
},
"target": {
"type": "string",
"enum": [
"ticket_panel",
"ai_ticket_panel",
"verification_panel",
"reaction_role_panel",
"booster_panel",
"match_together_lobby",
"component_builder_item",
"greeting_test",
"bump_reminder_test",
"activity_reward_test",
"starboard_test",
"ai_tickets_sync_rules",
"aimod_sync_rules"
],
"description": "Panel, test dispatch, or rules channel synchronization target."
},
"channelId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Destination Discord text or announcement channel snowflake ID belonging to guildId."
},
"itemId": {
"type": "string",
"maxLength": 120,
"description": "Specific panel ID, AI panel slot (ai-default, ai-panel-2, ai-panel-3), reaction role panel ID, component ID, starboard board ID, or greeting test slot."
},
"messageId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Optional existing bot Discord message ID to edit in place instead of posting a new message."
},
"forceRedeploy": {
"type": "boolean",
"default": false,
"description": "Set true to publish a new panel message even if an earlier message ID is already saved for this panel."
}
},
"required": [
"guildId",
"target"
],
"additionalProperties": false
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| guildId | string | Required | Discord server (guild) snowflake ID. |
| target | string | Required | Panel, test dispatch, or rules channel synchronization target. Allowed: ticket_panel | ai_ticket_panel | verification_panel | reaction_role_panel | booster_panel | match_together_lobby | component_builder_item | greeting_test | bump_reminder_test | activity_reward_test | starboard_test | ai_tickets_sync_rules | aimod_sync_rules |
| channelId | string | null | Optional | Destination Discord text or announcement channel snowflake ID belonging to guildId. |
| itemId | string | Optional | Specific panel ID, AI panel slot (ai-default, ai-panel-2, ai-panel-3), reaction role panel ID, component ID, starboard board ID, or greeting test slot. |
| messageId | string | null | Optional | Optional existing bot Discord message ID to edit in place instead of posting a new message. |
| forceRedeploy | boolean | Optional (false) | Set true to publish a new panel message even if an earlier message ID is already saved for this panel. |
Example
Deploy a configured Standard Ticket panel into a verified text channel.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "deploy_discord_panel",
"arguments": {
"guildId": "1200000000000000000",
"target": "ticket_panel",
"channelId": "1200000000000000010",
"itemId": "panel_general_support",
"forceRedeploy": false
}
}
}Response
Discord message delivery confirmation or idempotent already-deployed warning.
{
"deployed": true,
"updatedInPlace": false,
"target": "ticket_panel",
"guildId": "1200000000000000000",
"panelId": "panel_general_support",
"channelId": "1200000000000000010",
"messageId": "1400000000000000999",
"flags": 32768
}Errors
| Error Code | Condition | Resolution |
|---|---|---|
| UNAUTHORIZED | Missing, expired, or revoked Bearer access token or scoped Personal Access Token. | Re-authenticate through OAuth 2.1 or create a fresh token in https://mcp.taicket.xyz/account. |
| FORBIDDEN | Token lacks the required OAuth scope, the guild is outside allowedGuildIds, or caller lacks live Discord RBAC permissions. | Grant the required scope during consent or confirm your Discord server role permissions. |
| RATE_LIMITED | Caller exceeded the per-user sliding-window request limit. | Wait for the Retry-After window before issuing another request. |
| VALIDATION_ERROR | Input arguments failed Zod schema validation or contained invalid Discord snowflakes. | Inspect the parameter schema and supply valid Discord snowflake IDs and field types. |
| CROSS_GUILD_RESOURCE | A referenced channel, category, or role does not belong to the specified guildId. | Call get_server_topology for the target server and reference only resources returned for that guild. |
| TIER_UPGRADE_REQUIRED | The requested module, quota, or option requires a Pro or Enterprise subscription. | Review current plan limits with get_server_configuration or upgrade at https://taicket.xyz/dashboard/{guildId}/premium. |
| NOT_FOUND | The requested panel, item, command, or setup plan was not found for this server. | Inspect current resources with get_server_configuration and supply a valid ID. |
| DISCORD_API_ERROR | Discord REST API returned an error or the Taicket bot is not in the target server. | Confirm Taicket is installed in the server via get_discord_servers and retry. |
Behavior
- Enforces a dedicated deploy rate limit of 10 deployments per minute per user and appends a hash-chained audit entry.
- Verifies every target channel belongs to guildId via verifyChannelBelongsToGuild before calling Discord REST API.
- Updates existing panel messages in place when deploying to the same channel, and returns an alreadyDeployed warning instead of duplicating panels unless forceRedeploy is true.
- Validates external media URLs through the DNS-rebinding-pinned fetcher and magic-byte verifier, and rejects AI Support Panel 4.