返回顶部
d

discordDiscord控制

Use when you need to control Discord from Clawdbot via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
29,173
下载量
免费
免费
63
收藏
概述
安装方式
版本历史

discord

Discord 操作

概述

使用 discord 来管理消息、反应、线程、投票和审核。你可以通过 discord.actions.* 禁用功能组(默认启用,角色/审核除外)。该工具使用为 Clawdbot 配置的机器人令牌。

需要收集的输入

  • - 对于反应:channelId、messageId 和 emoji。
  • 对于贴纸/投票/sendMessage:一个 to 目标(channel: 或 user:)。可选的 content 文本。
  • 投票还需要一个 question 加上 2-10 个 answers。
  • 对于媒体:mediaUrl,本地文件使用 file:///path,远程文件使用 https://...。
  • 对于表情上传:guildId、name、mediaUrl、可选的 roleIds(限制 256KB,PNG/JPG/GIF)。
  • 对于贴纸上传:guildId、name、description、tags、mediaUrl(限制 512KB,PNG/APNG/Lottie JSON)。

消息上下文行包含 discord message id 和 channel 字段,你可以直接复用。

注意: sendMessage 使用 to: channel: 格式,而不是 channelId。其他操作如 react、readMessages、editMessage 直接使用 channelId。

操作

对消息做出反应

json
{
action: react,
channelId: 123,
messageId: 456,
emoji: ✅
}

列出反应和用户

json
{
action: reactions,
channelId: 123,
messageId: 456,
limit: 100
}

发送贴纸

json
{
action: sticker,
to: channel:123,
stickerIds: [9876543210],
content: 干得好!
}

  • - 每条消息最多 3 个贴纸 ID。
  • to 可以是 user: 用于私信。

上传自定义表情

json
{
action: emojiUpload,
guildId: 999,
name: party_blob,
mediaUrl: file:///tmp/party.png,
roleIds: [222]
}

  • - 表情图片必须是 PNG/JPG/GIF 且 <= 256KB。
  • roleIds 是可选的;省略则表情对所有成员可用。

上传贴纸

json
{
action: stickerUpload,
guildId: 999,
name: clawdbot_wave,
description: Clawdbot 挥手问好,
tags: 👋,
mediaUrl: file:///tmp/wave.png
}

  • - 贴纸需要 name、description 和 tags。
  • 上传必须是 PNG/APNG/Lottie JSON 且 <= 512KB。

创建投票

json
{
action: poll,
to: channel:123,
question: 午餐吃什么?,
answers: [披萨, 寿司, 沙拉],
allowMultiselect: false,
durationHours: 24,
content: 快来投票
}

  • - durationHours 默认为 24;最大 32 天(768 小时)。

检查机器人的频道权限

json
{
action: permissions,
channelId: 123
}

创意尝试

  • - 使用 ✅/⚠️ 反应来标记状态更新。
  • 发布快速投票来决定发布或会议时间。
  • 成功部署后发送庆祝贴纸。
  • 为发布时刻上传新表情/贴纸。
  • 在团队频道中运行每周优先级检查投票。
  • 用户请求完成时,通过私信发送贴纸作为确认。

操作开关

使用 discord.actions.* 禁用操作组:

  • - reactions(反应 + 反应列表 + 表情列表)
  • stickers、polls、permissions、messages、threads、pins、search
  • emojiUploads、stickerUploads
  • memberInfo、roleInfo、channelInfo、voiceStatus、events
  • roles(角色添加/移除,默认 false)
  • moderation(超时/踢出/封禁,默认 false)

读取最近消息

json
{
action: readMessages,
channelId: 123,
limit: 20
}

发送/编辑/删除消息

json
{
action: sendMessage,
to: channel:123,
content: 来自 Clawdbot 的问候
}

带媒体附件:

json
{
action: sendMessage,
to: channel:123,
content: 听听这个音频!,
mediaUrl: file:///tmp/audio.mp3
}

  • - to 使用格式 channel: 或 user: 用于私信(不是 channelId!)
  • mediaUrl 支持本地文件(file:///path/to/file)和远程 URL(https://...)
  • 可选的 replyTo 加上消息 ID 来回复特定消息

json
{
action: editMessage,
channelId: 123,
messageId: 456,
content: 修正了错别字
}

json
{
action: deleteMessage,
channelId: 123,
messageId: 456
}

线程

json
{
action: threadCreate,
channelId: 123,
name: Bug 分类,
messageId: 456
}

json
{
action: threadList,
guildId: 999
}

json
{
action: threadReply,
channelId: 777,
content: 在线程中回复
}

置顶

json
{
action: pinMessage,
channelId: 123,
messageId: 456
}

json
{
action: listPins,
channelId: 123
}

搜索消息

json
{
action: searchMessages,
guildId: 999,
content: 发布说明,
channelIds: [123, 456],
limit: 10
}

成员和角色信息

json
{
action: memberInfo,
guildId: 999,
userId: 111
}

json
{
action: roleInfo,
guildId: 999
}

列出可用的自定义表情

json
{
action: emojiList,
guildId: 999
}

角色变更(默认禁用)

json
{
action: roleAdd,
guildId: 999,
userId: 111,
roleId: 222
}

频道信息

json
{
action: channelInfo,
channelId: 123
}

json
{
action: channelList,
guildId: 999
}

语音状态

json
{
action: voiceStatus,
guildId: 999,
userId: 111
}

预定活动

json
{
action: eventList,
guildId: 999
}

审核(默认禁用)

json
{
action: timeout,
guildId: 999,
userId: 111,
durationMinutes: 10
}

Discord 写作风格指南

保持对话感! Discord 是聊天平台,不是文档。

应该做

  • - 简短有力的消息(1-3 句最佳)
  • 多次快速回复 > 一大段文字
  • 使用表情符号表达语气/强调 🦞
  • 小写随意的风格没问题
  • 将信息分成易于理解的小块
  • 匹配对话的能量水平

不应该做

  • - 不要用 markdown 表格(Discord 会渲染成难看的原始 | text |)
  • 闲聊中不要用 ## 标题(使用 粗体 或大写来强调)
-

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 discord-1775925841 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 discord-1775925841 技能

通过命令行安装

skillhub install discord-1775925841

下载

⬇ 下载 discord v1.0.1(免费)

文件大小: 3.24 KB | 发布时间: 2026-4-12 09:44

v1.0.1 最新 2026-4-12 09:44

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部