🤖 Discord Bot
Discord Bot API integration — manage servers, channels, messages, roles, members, and webhooks via the Discord REST API.
Features
- - Send messages — text, embeds, files to any channel
- Channel management — create, update, delete channels
- Server info — guild details, settings, and statistics
- Member management — list, kick, ban, role assignment
- Role management — create, update, assign roles
- Message operations — send, edit, delete, react, pin
- Webhook management — create and send via webhooks
- Thread management — create and manage threads
- Emoji management — list and manage custom emojis
- Audit log — view server audit events
Requirements
| Variable | Required | Description |
|---|
| INLINECODE0 | ✅ | API key/token for Discord Bot |
Quick Start
CODEBLOCK0
CODEBLOCK1
CODEBLOCK2
CODEBLOCK3
Commands
guilds
List bot's servers.
CODEBLOCK4
guild-get
Get server details.
CODEBLOCK5
channels
List server channels.
CODEBLOCK6
channel-create
Create a channel.
CODEBLOCK7
channel-update
Update channel.
CODEBLOCK8
send
Send a message.
CODEBLOCK9
send-embed
Send embed message.
CODEBLOCK10
messages
List channel messages.
CODEBLOCK11
message-edit
Edit a message.
CODEBLOCK12
message-delete
Delete a message.
CODEBLOCK13
react
Add reaction to message.
CODEBLOCK14
members
List server members.
CODEBLOCK15
roles
List server roles.
CODEBLOCK16
role-assign
Assign role to member.
CODEBLOCK17
webhooks
List channel webhooks.
CODEBLOCK18
Output Format
All commands output JSON by default. Add --human for readable formatted output.
CODEBLOCK19
Script Reference
| Script | Description |
|---|
| INLINECODE17 | Main CLI — all Discord Bot operations |
Data Policy
This skill never stores data locally. All requests go directly to the Discord Bot API and results are returned to stdout. Your data stays on Discord Bot servers.
Credits
Built by
M. Abidi |
agxntsix.ai
YouTube |
GitHub
Part of the
AgxntSix Skill Suite for OpenClaw agents.
📅 Need help setting up OpenClaw for your business? Book a free consultation
🤖 Discord 机器人
Discord 机器人 API 集成 — 通过 Discord REST API 管理服务器、频道、消息、角色、成员和 Webhook。
功能特性
- - 发送消息 — 向任意频道发送文本、嵌入消息和文件
- 频道管理 — 创建、更新、删除频道
- 服务器信息 — 服务器详情、设置和统计数据
- 成员管理 — 列出、踢出、封禁、分配角色
- 角色管理 — 创建、更新、分配角色
- 消息操作 — 发送、编辑、删除、回应、置顶
- Webhook 管理 — 创建并通过 Webhook 发送消息
- 线程管理 — 创建和管理线程
- 表情管理 — 列出和管理自定义表情
- 审计日志 — 查看服务器审计事件
环境要求
| 变量 | 必需 | 描述 |
|---|
| DISCORDBOTTOKEN | ✅ | Discord 机器人的 API 密钥/令牌 |
快速开始
bash
列出机器人的服务器
python3 {baseDir}/scripts/discord-bot.py guilds
bash
获取服务器详情
python3 {baseDir}/scripts/discord-bot.py guild-get 123456789
bash
列出服务器频道
python3 {baseDir}/scripts/discord-bot.py channels --guild 123456789
bash
创建频道
python3 {baseDir}/scripts/discord-bot.py channel-create --guild 123456789 general-chat --type text
命令
guilds
列出机器人的服务器。
bash
python3 {baseDir}/scripts/discord-bot.py guilds
guild-get
获取服务器详情。
bash
python3 {baseDir}/scripts/discord-bot.py guild-get 123456789
channels
列出服务器频道。
bash
python3 {baseDir}/scripts/discord-bot.py channels --guild 123456789
channel-create
创建频道。
bash
python3 {baseDir}/scripts/discord-bot.py channel-create --guild 123456789 general-chat --type text
channel-update
更新频道。
bash
python3 {baseDir}/scripts/discord-bot.py channel-update 987654321 {name:announcements,topic:Important updates}
send
发送消息。
bash
python3 {baseDir}/scripts/discord-bot.py send --channel 987654321 Hello from the bot!
send-embed
发送嵌入消息。
bash
python3 {baseDir}/scripts/discord-bot.py send-embed --channel 987654321 {title:Update,description:New feature released,color:5814783}
messages
列出频道消息。
bash
python3 {baseDir}/scripts/discord-bot.py messages --channel 987654321 --limit 20
message-edit
编辑消息。
bash
python3 {baseDir}/scripts/discord-bot.py message-edit --channel 987654321 --message 111222333 Updated text
message-delete
删除消息。
bash
python3 {baseDir}/scripts/discord-bot.py message-delete --channel 987654321 --message 111222333
react
添加消息回应。
bash
python3 {baseDir}/scripts/discord-bot.py react --channel 987654321 --message 111222333 --emoji 👍
members
列出服务器成员。
bash
python3 {baseDir}/scripts/discord-bot.py members --guild 123456789 --limit 50
roles
列出服务器角色。
bash
python3 {baseDir}/scripts/discord-bot.py roles --guild 123456789
role-assign
为成员分配角色。
bash
python3 {baseDir}/scripts/discord-bot.py role-assign --guild 123456789 --user 444555666 --role 777888999
webhooks
列出频道 Webhook。
bash
python3 {baseDir}/scripts/discord-bot.py webhooks --channel 987654321
输出格式
所有命令默认输出 JSON 格式。添加 --human 参数可获取可读性更好的格式化输出。
bash
JSON(默认,适用于程序化使用)
python3 {baseDir}/scripts/discord-bot.py guilds --limit 5
人类可读格式
python3 {baseDir}/scripts/discord-bot.py guilds --limit 5 --human
脚本参考
| 脚本 | 描述 |
|---|
| {baseDir}/scripts/discord-bot.py | 主 CLI — 所有 Discord 机器人操作 |
数据政策
本技能绝不本地存储数据。所有请求直接发送至 Discord 机器人 API,结果返回至标准输出。您的数据保留在 Discord 机器人服务器上。
致谢
由
M. Abidi 构建 |
agxntsix.ai
YouTube |
GitHub
属于
AgxntSix 技能套件 的一部分,适用于 OpenClaw 代理。
📅 需要帮助为您的企业设置 OpenClaw? 预约免费咨询