diff --git a/404.html b/404.html index 6360205..ab37098 100644 --- a/404.html +++ b/404.html @@ -15,7 +15,7 @@
- + \ No newline at end of file diff --git a/artifacts.json b/artifacts.json index f7c466f..d2bfdc9 100644 --- a/artifacts.json +++ b/artifacts.json @@ -2,18 +2,18 @@ "total_count": 9, "artifacts": [ { - "id": 1628659481, - "node_id": "MDg6QXJ0aWZhY3QxNjI4NjU5NDgx", - "name": "OneDisc 0.2.7.12 for macos-latest-arm64", + "id": 1628683289, + "node_id": "MDg6QXJ0aWZhY3QxNjI4NjgzMjg5", + "name": "OneDisc 0.2.7.0 for macos-latest-arm64", "size_in_bytes": 30257024, - "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659481", - "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659481/zip", + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683289", + "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683289/zip", "expired": false, - "created_at": "2024-06-23T06:33:12Z", - "updated_at": "2024-06-23T06:33:13Z", - "expires_at": "2024-09-21T06:28:54Z", + "created_at": "2024-06-23T07:00:50Z", + "updated_at": "2024-06-23T07:00:51Z", + "expires_at": "2024-09-21T06:58:39Z", "workflow_run": { - "id": 9631239175, + "id": 9631458384, "repository_id": 697880638, "head_repository_id": 697880638, "head_branch": "master", @@ -21,18 +21,18 @@ } }, { - "id": 1628659482, - "node_id": "MDg6QXJ0aWZhY3QxNjI4NjU5NDgy", - "name": "OneDisc 0.2.7.12 for macos-latest-x64", + "id": 1628683290, + "node_id": "MDg6QXJ0aWZhY3QxNjI4NjgzMjkw", + "name": "OneDisc 0.2.7.0 for macos-latest-x64", "size_in_bytes": 30257024, - "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659482", - "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659482/zip", + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683290", + "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683290/zip", "expired": false, - "created_at": "2024-06-23T06:33:12Z", - "updated_at": "2024-06-23T06:33:13Z", - "expires_at": "2024-09-21T06:28:36Z", + "created_at": "2024-06-23T07:00:50Z", + "updated_at": "2024-06-23T07:00:51Z", + "expires_at": "2024-09-21T06:58:19Z", "workflow_run": { - "id": 9631239175, + "id": 9631458384, "repository_id": 697880638, "head_repository_id": 697880638, "head_branch": "master", @@ -40,18 +40,18 @@ } }, { - "id": 1628659484, - "node_id": "MDg6QXJ0aWZhY3QxNjI4NjU5NDg0", - "name": "OneDisc 0.2.7.12 for macos-latest-x86", + "id": 1628683291, + "node_id": "MDg6QXJ0aWZhY3QxNjI4NjgzMjkx", + "name": "OneDisc 0.2.7.0 for macos-latest-x86", "size_in_bytes": 30257024, - "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659484", - "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659484/zip", + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683291", + "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683291/zip", "expired": false, - "created_at": "2024-06-23T06:33:12Z", - "updated_at": "2024-06-23T06:33:13Z", - "expires_at": "2024-09-21T06:28:49Z", + "created_at": "2024-06-23T07:00:50Z", + "updated_at": "2024-06-23T07:00:51Z", + "expires_at": "2024-09-21T06:57:14Z", "workflow_run": { - "id": 9631239175, + "id": 9631458384, "repository_id": 697880638, "head_repository_id": 697880638, "head_branch": "master", @@ -59,18 +59,18 @@ } }, { - "id": 1628659486, - "node_id": "MDg6QXJ0aWZhY3QxNjI4NjU5NDg2", - "name": "OneDisc 0.2.7.12 for ubuntu-latest-arm64", - "size_in_bytes": 48684235, - "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659486", - "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659486/zip", + "id": 1628683292, + "node_id": "MDg6QXJ0aWZhY3QxNjI4NjgzMjky", + "name": "OneDisc 0.2.7.0 for ubuntu-latest-arm64", + "size_in_bytes": 48686266, + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683292", + "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683292/zip", "expired": false, - "created_at": "2024-06-23T06:33:12Z", - "updated_at": "2024-06-23T06:33:13Z", - "expires_at": "2024-09-21T06:32:55Z", + "created_at": "2024-06-23T07:00:50Z", + "updated_at": "2024-06-23T07:00:51Z", + "expires_at": "2024-09-21T06:59:05Z", "workflow_run": { - "id": 9631239175, + "id": 9631458384, "repository_id": 697880638, "head_repository_id": 697880638, "head_branch": "master", @@ -78,18 +78,18 @@ } }, { - "id": 1628659487, - "node_id": "MDg6QXJ0aWZhY3QxNjI4NjU5NDg3", - "name": "OneDisc 0.2.7.12 for ubuntu-latest-x64", - "size_in_bytes": 48684029, - "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659487", - "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659487/zip", + "id": 1628683293, + "node_id": "MDg6QXJ0aWZhY3QxNjI4NjgzMjkz", + "name": "OneDisc 0.2.7.0 for ubuntu-latest-x64", + "size_in_bytes": 48686157, + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683293", + "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683293/zip", "expired": false, - "created_at": "2024-06-23T06:33:12Z", - "updated_at": "2024-06-23T06:33:13Z", - "expires_at": "2024-09-21T06:27:15Z", + "created_at": "2024-06-23T07:00:50Z", + "updated_at": "2024-06-23T07:00:51Z", + "expires_at": "2024-09-21T06:58:25Z", "workflow_run": { - "id": 9631239175, + "id": 9631458384, "repository_id": 697880638, "head_repository_id": 697880638, "head_branch": "master", @@ -97,18 +97,18 @@ } }, { - "id": 1628659488, - "node_id": "MDg6QXJ0aWZhY3QxNjI4NjU5NDg4", - "name": "OneDisc 0.2.7.12 for ubuntu-latest-x86", - "size_in_bytes": 48684029, - "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659488", - "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659488/zip", + "id": 1628683294, + "node_id": "MDg6QXJ0aWZhY3QxNjI4NjgzMjk0", + "name": "OneDisc 0.2.7.0 for ubuntu-latest-x86", + "size_in_bytes": 48686157, + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683294", + "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683294/zip", "expired": false, - "created_at": "2024-06-23T06:33:12Z", - "updated_at": "2024-06-23T06:33:13Z", - "expires_at": "2024-09-21T06:27:23Z", + "created_at": "2024-06-23T07:00:50Z", + "updated_at": "2024-06-23T07:00:51Z", + "expires_at": "2024-09-21T06:58:20Z", "workflow_run": { - "id": 9631239175, + "id": 9631458384, "repository_id": 697880638, "head_repository_id": 697880638, "head_branch": "master", @@ -116,18 +116,18 @@ } }, { - "id": 1628659489, - "node_id": "MDg6QXJ0aWZhY3QxNjI4NjU5NDg5", - "name": "OneDisc 0.2.7.12 for windows-latest-arm64", - "size_in_bytes": 27712512, - "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659489", - "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659489/zip", + "id": 1628683295, + "node_id": "MDg6QXJ0aWZhY3QxNjI4NjgzMjk1", + "name": "OneDisc 0.2.7.0 for windows-latest-arm64", + "size_in_bytes": 27712000, + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683295", + "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683295/zip", "expired": false, - "created_at": "2024-06-23T06:33:12Z", - "updated_at": "2024-06-23T06:33:13Z", - "expires_at": "2024-09-21T06:30:54Z", + "created_at": "2024-06-23T07:00:50Z", + "updated_at": "2024-06-23T07:00:51Z", + "expires_at": "2024-09-21T07:00:24Z", "workflow_run": { - "id": 9631239175, + "id": 9631458384, "repository_id": 697880638, "head_repository_id": 697880638, "head_branch": "master", @@ -135,18 +135,18 @@ } }, { - "id": 1628659490, - "node_id": "MDg6QXJ0aWZhY3QxNjI4NjU5NDkw", - "name": "OneDisc 0.2.7.12 for windows-latest-x64", - "size_in_bytes": 27712512, - "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659490", - "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659490/zip", + "id": 1628683298, + "node_id": "MDg6QXJ0aWZhY3QxNjI4NjgzMjk4", + "name": "OneDisc 0.2.7.0 for windows-latest-x64", + "size_in_bytes": 27712000, + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683298", + "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683298/zip", "expired": false, - "created_at": "2024-06-23T06:33:12Z", - "updated_at": "2024-06-23T06:33:13Z", - "expires_at": "2024-09-21T06:30:56Z", + "created_at": "2024-06-23T07:00:50Z", + "updated_at": "2024-06-23T07:00:51Z", + "expires_at": "2024-09-21T07:00:08Z", "workflow_run": { - "id": 9631239175, + "id": 9631458384, "repository_id": 697880638, "head_repository_id": 697880638, "head_branch": "master", @@ -154,18 +154,18 @@ } }, { - "id": 1628659491, - "node_id": "MDg6QXJ0aWZhY3QxNjI4NjU5NDkx", - "name": "OneDisc 0.2.7.12 for windows-latest-x86", - "size_in_bytes": 27712512, - "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659491", - "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628659491/zip", + "id": 1628683299, + "node_id": "MDg6QXJ0aWZhY3QxNjI4NjgzMjk5", + "name": "OneDisc 0.2.7.0 for windows-latest-x86", + "size_in_bytes": 27712000, + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683299", + "archive_download_url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/artifacts/1628683299/zip", "expired": false, - "created_at": "2024-06-23T06:33:12Z", - "updated_at": "2024-06-23T06:33:13Z", - "expires_at": "2024-09-21T06:32:37Z", + "created_at": "2024-06-23T07:00:50Z", + "updated_at": "2024-06-23T07:00:51Z", + "expires_at": "2024-09-21T07:00:38Z", "workflow_run": { - "id": 9631239175, + "id": 9631458384, "repository_id": 697880638, "head_repository_id": 697880638, "head_branch": "master", diff --git a/config.html b/config.html index 159e085..e3f9c3c 100644 --- a/config.html +++ b/config.html @@ -80,7 +80,7 @@ "use_universal_client": false, "access_token": null }
项目类型必须默认值说明
type字符串连接类型,为ws-reverse
protocol_version数字12协议版本,为 11
url字符串WebSocket 服务器地址
api_url字符串WebSocket API 服务器地址,为空时填入 url 字段的配置
event_url字符串WebSocket Event 服务器地址,为空时填入 url 字段的配置
use_universal_client布尔false是否启用 WebSocket Universal 客户端
access_token字符串/空null访问令牌
- + \ No newline at end of file diff --git a/diff-v11.html b/diff-v11.html index d3d9f41..2cef64a 100644 --- a/diff-v11.html +++ b/diff-v11.html @@ -18,7 +18,7 @@
Skip to content

标准差异细节 (OneBot V11)

本页面是 OneDisc 与 OneBot V11 标准差异的详细说明,与 OneBot V12 的偏差请查看 本页面

支持受限的内容

事件

OneDisc 暂不支持事件快速操作

事件名称说明
notice.group_upload
notice.friend_addDiscord Bot 没有好友功能
notice.notifyDiscord 不支持相关功能
request.friendDiscord Bot 没有好友功能
request.groupDiscord 不支持相关功能

「说明」为空表示「暂未实现」,将在后续版本完成

message.private

字段名说明
fontDiscord 不支持相关功能,将填入 -1
sender平台限制,只能获取 user_idnickname 字段

message.group

字段名说明
fontDiscord 不支持相关功能,将填入 -1
sender平台限制,只能获取 user_idnicknamecardrole 字段

API

接口名称终结点说明
获取合并转发消息get_forward_msgDiscord 不支持相关功能
发送好友赞send_likeDiscord 不支持相关功能
群组匿名用户禁言set_group_anonymous_banDiscord 不支持相关功能
群组全员禁言set_group_whole_banDiscord 不支持相关功能
群组匿名set_group_anonymousDiscord 不支持相关功能
设置群组专属头衔set_group_special_titleDiscord 不支持相关功能
处理加好友请求set_friend_add_requestDiscord Bot 没有好友功能
处理加群请求set_group_add_requestDiscord 不支持相关功能
获取好友列表get_friend_listDiscord Bot 没有好友功能
获取群荣誉信息get_group_honor_infoDiscord 不支持相关功能
获取 Cookiesget_cookies这是什么.jpg
获取 CSRF Tokenget_csrf_token这是什么.jpg
获取 QQ 接口凭证get_credentials这是什么.jpg
获取语音get_record这玩意不写CQ码上了吗
获取群成员信息get_group_member_info平台限制,只能获取 user_idnicknamecardsexjoin_timerole 字段

「说明」为空的接口表示「暂未实现」将在后续版本完成

消息段类型

消息段名称消息段类型说明
猜拳魔法表情rpsDiscord 不支持相关功能
掷骰子魔法表情diceDiscord 不支持相关功能
窗口抖动shakeDiscord 不支持相关功能
戳一戳pokeDiscord 不支持相关功能
匿名发消息anonymousDiscord 不支持相关功能
推荐好友/群contact
音乐自定义分享music
合并转发forwardDiscord 不支持有关功能
XML 消息xmlDiscord 不支持有关功能
JSON 消息jsonDiscord 不支持有关功能

「说明」为空表示「暂未实现」,将在后续版本完成

拓展内容

拓展接口

edit_message 编辑消息

参数类型必须说明
message_idint要编辑的消息 ID
contentmessage | str消息内容

本动作无相应数据

拓展消息段

emoji 自定义表情

字段名数据类型说明
namestr自定义表情名称
idint表情 ID

channel 频道

字段名数据类型说明
channel_idint频道 ID

role 提及权限组

字段名数据类型说明
idint权限组 ID

timestamp 时间

字段名数据类型说明
timeintUnix 时间戳
stylestr时间格式,参见
字段名数据类型说明
typestr我不知道这是什么

markdown MarkDown

字段名数据类型说明
datastrMarkDown 内容,支持使用 base64:// + b64编码
- + \ No newline at end of file diff --git a/differences.html b/differences.html index c053bc8..bbfc5fb 100644 --- a/differences.html +++ b/differences.html @@ -18,7 +18,7 @@
Skip to content

标准偏差细节

本页面是 OneDisc 实现与 OneBot V12 标准的偏差细节,与 OneBot V11 的偏差请查看 本页面

支持受限的内容

动作

动作名终结点原因
获取好友列表get_friend_listDiscord Bot 没有好友功能,请求此动作将返回空列表

事件

事件说明
notice.friend_increaseDiscord Bot 没有好友功能
notice.friend_decreaseDiscord Bot 没有好友功能
notice.channel_member_increasediscord.py 未提供相关接口
notice.channel_member_decreasediscord.py 未提供相关接口

与标准有差异的事件

事件说明
notice.group_member_increase平台限制,无法判断加入成员是被邀请还是主动加入,sub_type 将依 配置项 填入空字符串或 "join"
notice.group_member_decrease平台限制,无法判断成员是主动离开还是被踢出,sub_type 将依 配置项 填入空字符串或 "leave"
notice.guild_member_increasenotice.group_member_increase
notice.guild_member_decreasenotice.group_member_decrease
notice.channel_create平台限制,无法获取操作者 ID,将填入"-1"
notice.channel_delete平台限制,无法获取操作者 ID,将填入"-1"
notice.channel_message_delete平台限制,无法判断消息为主动撤回还是被管理员撤回,sub_type 将依 配置项 填入空字符串或 "recall"
notice.group_message_deletenotice.channel_message_delete
notice.private_message_deletenotice.channel_message_delete

消息段

消息段说明
voice 语音discord.py 未提供相关接口,将以 audio 形式发送

拓展内容

message 类型为 OneBot V12 消息段,其余数据类型参考 Python3 数据类型

拓展动作

edit_message 编辑消息

参数类型必须说明
message_idstr要编辑的消息 ID
contentmessage消息内容

本动作无响应数据

拓展消息段

discord.emoji 自定义表情

字段名数据类型说明
namestr自定义表情名称
idint表情 ID

discord.channel 频道

字段名数据类型说明
channel_idstr频道 ID

discord.role 提及权限组

字段名数据类型说明
idstr权限组 ID

discord.timestamp 时间

字段名数据类型说明
timeintUnix 时间戳
stylestr时间格式,参见

discord.navigation Navigation

字段名数据类型说明
typestr我不知道这是什么

discord.markdown MarkDown

字段名数据类型说明
datastrMarkDown 内容,支持使用 base64:// + b64编码
- + \ No newline at end of file diff --git a/download.html b/download.html index e65a0c4..8b591b2 100644 --- a/download.html +++ b/download.html @@ -18,7 +18,7 @@
Skip to content

下载

最新测试版最新稳定版

稳定版

测试版

下载这些内容可能需要先在 GitHub 上登陆

- + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index f0abd36..5b92048 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"slash-command.md":"wBIWY2eB","differences.md":"DJgF5zm4","quickstart.md":"EDCcl1Sn","join-discord.md":"EK2OBQxF","index.md":"Q-x-leHS","config.md":"Dow00b9o","diff-v11.md":"C5AFrLSG","download.md":"B-VGg9UQ"} +{"slash-command.md":"wBIWY2eB","index.md":"Q-x-leHS","diff-v11.md":"C5AFrLSG","join-discord.md":"EK2OBQxF","quickstart.md":"EDCcl1Sn","download.md":"B-VGg9UQ","differences.md":"DJgF5zm4","config.md":"Dow00b9o"} diff --git a/index.html b/index.html index cd6da40..9de34bd 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@
Skip to content

OneDisc

Discord 的 OneBot 实现

快速、跨平台,基于 discord.py

- + \ No newline at end of file diff --git a/join-discord.html b/join-discord.html index 06f6325..5277c6c 100644 --- a/join-discord.html +++ b/join-discord.html @@ -18,7 +18,7 @@
Skip to content

加入我们的 Discord 社区!

欢迎来到 OneDisc 的官方 Discord 服务器!这是一个我们与热情的社区成员交流的特殊空间。在这里,您可以发现有关我们产品的最新消息、得到实时的技术支持,并与同样热爱 OneDisc 的其他用户互动。

🔗 立即加入!
点击这里加入我们的 Discord 服务器

为什么要加入我们的 Discord 社区?

  • 💬 实时交流:与 OneDisc 团队及其他用户直接交流;
  • 📢 最新公告:第一时间获取有关更新和新功能的信息;
  • 🛠️ 技术支持:有问题?我们的团队会在这里为您提供帮助;
  • 🎉 独家活动:参加由我们组织的各种活动和竞赛。

希望您在 OneDisc 的 Discord 社区中度过愉快的时光

- + \ No newline at end of file diff --git a/quickstart.html b/quickstart.html index 8d3fd2c..8fa4b0a 100644 --- a/quickstart.html +++ b/quickstart.html @@ -31,7 +31,7 @@ }, "servers": [] }

对于配置项的详细信息,请查看 配置

启动 OneDisc

在配置完成后,再次启动 OneDisc

出现类似输出代表 OneDisc 已成功启动

bash
[1919-08-10 11:45:14][__main__ / INFO]: 成功登陆到 OneDisc#9527
- + \ No newline at end of file diff --git a/release.json b/release.json index e475eb7..3f262ee 100644 --- a/release.json +++ b/release.json @@ -135,6 +135,40 @@ "updated_at": "2024-06-23T06:28:32Z", "browser_download_url": "https://github.com/ITCraftDevelopmentTeam/OneDisc/releases/download/v0.2.7/OneDisc.for.ubuntu-latest-x86.zip" }, + { + "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/releases/assets/175411209", + "id": 175411209, + "node_id": "RA_kwDOKZjQPs4KdJAJ", + "name": "OneDisc.for.windows-latest-arm64.exe", + "label": "", + "uploader": { + "login": "github-actions[bot]", + "id": 41898282, + "node_id": "MDM6Qm90NDE4OTgyODI=", + "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-actions%5Bbot%5D", + "html_url": "https://github.com/apps/github-actions", + "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "content_type": "application/octet-stream", + "state": "uploaded", + "size": 27712000, + "download_count": 0, + "created_at": "2024-06-23T06:34:00Z", + "updated_at": "2024-06-23T06:34:02Z", + "browser_download_url": "https://github.com/ITCraftDevelopmentTeam/OneDisc/releases/download/v0.2.7/OneDisc.for.windows-latest-arm64.exe" + }, { "url": "https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/releases/assets/175410988", "id": 175410988, diff --git a/slash-command.html b/slash-command.html index ca809f3..97b9594 100644 --- a/slash-command.html +++ b/slash-command.html @@ -29,7 +29,7 @@ "description": "获取指令帮助" } ]

commands.json 是一个数组,每一项的内容是一个对象,包含注册指令时的参数,常用的参数如下:

事实上,除了 name 的参数都是可选的

更多参数详见 此处

开启全局同步

  1. 删除指令指令列表的 guildguilds 参数(将指令设为全局指令)
  2. system.sync_globally 配置设为 true
  3. 重新启动 OneDisc

请注意,Discord 在全局范围同步指令非常缓慢(大约需要一个小时)

- + \ No newline at end of file