Use this skill for focused Discord server administration with explicit IDs and limited write scope.
Supported operations:
Out of scope:
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>
channel-list or role-list.403, check bot permissions and role hierarchy.DISCORD_BOT_TOKEN; do not hardcode secrets into files.Administrator when practical.role-position only moves the role you specify; it is not a full reorder planner.channel-create supports text, voice, and category only.scripts/discord-server-admin.sh — direct HTTPS helper for channels, roles, and member role assignment.共 1 个版本