-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
192 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# 子频道 | ||
## 待更新 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# 公共接口 | ||
## 1. 获取机器人信息 | ||
- getSelfInfo | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述| | ||
|-----|----|------|----| |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 频道私信 | ||
## 创建频道私信会话 | ||
- createDirectSession | ||
- 将返回[DMS](https://bot.q.qq.com/wiki/develop/api-v2/server-inter/message/dms/model.html#dms) | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述| | ||
|-----|----|------|----| | ||
| guild_id|string|是|频道id| | ||
| user_id|string|是|成员id| | ||
## 发送频道私信 | ||
- sendDirectMessage | ||
- 将返回发送的消息对象 | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述 | | ||
|----------|----------|------|-----------| | ||
| guild_id | string |是| 私信会话的频道id | | ||
| message | Sendable |是| 消息内容 | | ||
## 获取频道私信 | ||
- getDirectMessage | ||
- 将返回发送的消息对象 | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述 | | ||
|------------|----------|------|-----------| | ||
| guild_id | string |是| 私信会话的频道id | | ||
| message_id | Sendable |是| 消息id | | ||
## 撤回频道私信 | ||
- recallDirectMessage | ||
- 将返回是否撤回成功 | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述 | | ||
|------------|----------|------|-----------| | ||
| guild_id | string |是| 私信会话的频道id | | ||
| message_id | Sendable |是| 消息id | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 好友 | ||
::: tip | ||
需要机器人拥有私聊权限 | ||
::: | ||
## 发送私聊消息 | ||
- sendPrivateMessage | ||
- 将返回发送的消息对象 | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述 | | ||
|---------|----------|------|------| | ||
| user_id | string |是| 好友id | | ||
| message | Sendable |是| 消息内容 | | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 群 | ||
::: tip | ||
需要机器人拥有群聊权限 | ||
::: | ||
## 发送群消息 | ||
- sendGroupMessage | ||
- 将返回发送的消息对象 | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述 | | ||
|----------|----------|------|------| | ||
| group_id | string |是| 群id | | ||
| message | Sendable |是| 消息内容 | | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# 频道 | ||
## 获取频道列表 | ||
- getGuildList | ||
- 将返回[Guild](https://bot.q.qq.com/wiki/develop/api-v2/server-inter/channel/manage/guild/model.html#guild)[] | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述| | ||
|-----|----|------|----| | ||
|
||
## 获取子频道列表 | ||
- getChannelList | ||
- 将返回 [Channel](https://bot.q.qq.com/wiki/develop/api-v2/server-inter/channel/manage/channel/model.html#channel)对象 | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述| | ||
|-----|----|------|----| | ||
| guild_id|string|是|频道id| | ||
## 获取频道成员列表 | ||
::: tip | ||
仅私域机器人可用 | ||
::: | ||
- getGuildMemberList | ||
- 将返回[Member](https://bot.q.qq.com/wiki/develop/api-v2/server-inter/channel/role/member/model.html#member)[] | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述| | ||
|-----|----|------|----| | ||
| guild_id|string|是|频道id| | ||
## 发送频道消息 | ||
- sendGuildMessage | ||
- 将返回发送的消息对象 | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述 | | ||
|------------|----------|------|-------| | ||
| channel_id | string |是| 子频道id | | ||
| message | Sendable |是| 消息内容 | | ||
## 获取频道消息 | ||
- getGuildMessage | ||
- 将返回发送的消息对象 | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述 | | ||
|------------|--------|------|-------| | ||
| channel_id | string |是| 子频道id | | ||
| message_id | string |是| 消息id | | ||
## 撤回频道消息 | ||
- recallGuildMessage | ||
- 须传入对应子频道的channel_id和message_id | ||
- 将返回是否撤回成功 | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述 | | ||
|------------|--------|------|-------| | ||
| channel_id | string |是| 子频道id | | ||
| message_id | string |是| 消息id | | ||
## 禁言频道成员 | ||
- muteGuildMember | ||
|
||
| 参数名 | 类型 | 是否必填 | 描述 | | ||
|-----------|--------|------|------| | ||
| guild_id | string |是| 频道id | | ||
| member_id | string |是| 成员id | | ||
|
||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## Interface |
Oops, something went wrong.