← 返回
未分类 Key 中文

Discord Server Admin

Manage Discord servers with a narrow, medium-risk scope using direct Bot API calls. Use when creating, renaming, moving, or deleting channels/categories; cre...
Manage Discord servers with a narrow, medium-risk scope using direct Bot API calls. Use when creating, renaming, moving, or deleting channels/categories; cre...
datarxdacted datarxdacted 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 1
Stars
📥 358
下载
💾 0
安装
1
版本
#latest

概述

Discord Server Admin

Use this skill for focused Discord server administration with explicit IDs and limited write scope.

Scope

Supported operations:

  • List channels and roles
  • Create, edit, and delete channels/categories
  • Create, edit, delete, and reorder roles
  • Assign and remove roles for members

Out of scope:

  • Bans, kicks, timeouts, or other moderation actions
  • Webhooks, invites, automod, templates, events, or guild settings
  • Bulk/mass operations
  • Fuzzy matching by names when exact IDs are available

Quick start

Use scripts/discord-server-admin.sh.

Examples:

export DISCORD_BOT_TOKEN="..."

# Inspect current layout
./scripts/discord-server-admin.sh channel-list <guild_id>
./scripts/discord-server-admin.sh role-list <guild_id>

# Create a category and a text channel under it
./scripts/discord-server-admin.sh channel-create <guild_id> "CLAN HQ" --type category
./scripts/discord-server-admin.sh channel-create <guild_id> clan-chat --type text --parent-id <category_id> --topic "Main clan chat"

# Create or update a role
./scripts/discord-server-admin.sh role-create <guild_id> Member --color 3498DB --permissions 0 --mentionable false --hoist false
./scripts/discord-server-admin.sh role-edit <guild_id> <role_id> --color 2ECC71

# Assign/remove a role
./scripts/discord-server-admin.sh member-role-add <guild_id> <role_id> <user_id>
./scripts/discord-server-admin.sh member-role-remove <guild_id> <role_id> <user_id>

Workflow

  1. Start with channel-list or role-list.
  2. Confirm exact guild/channel/role/user IDs before writes.
  3. Apply one targeted change at a time.
  4. If Discord returns 403, check bot permissions and role hierarchy.
  5. If a role sits above the bot role, reorder roles in Discord before retrying assignments or edits.

Safety rules

  • Treat this as a medium-risk skill because it uses a bot token and can modify server structure.
  • Keep the bot token in DISCORD_BOT_TOKEN; do not hardcode secrets into files.
  • Prefer least privilege over Administrator when practical.
  • Avoid destructive actions unless the user clearly asked for them.
  • Do not add mass-delete or bulk moderation features to this skill.
  • Use exact IDs for write actions to avoid touching the wrong server object.

Limitations

  • Discord role hierarchy still applies even when the bot has strong permissions.
  • role-position only moves the role you specify; it is not a full reorder planner.
  • channel-create supports text, voice, and category only.
  • Permissions must be provided as Discord integer bitfields, not named permission strings.

Resource

  • scripts/discord-server-admin.sh — direct HTTPS helper for channels, roles, and member role assignment.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 15:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 79 📥 182,696
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 197 📥 68,073
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 682 📥 330,136