# 创建频道 API 接口权限授权链接

# 接口

POST /guilds/{guild_id}/api_permission/demand

# 功能描述

用于创建 API 接口权限授权链接,该链接指向guild_id对应的频道 。

需要注意,私信场景中,当需要查询私信来源频道的权限时,应使用src_guild_id,即 message中的src_guild_id

  • 每天只能在一个频道内发 3 条(默认值)频道权限授权链接。

# 示例图

img.png

# Content-Type

application/json

# 参数

字段名 类型 描述
channel_id string 授权链接发送的子频道 id
api_identify APIPermissionDemandIdentify 对象 api 权限需求标识对象
desc string 机器人申请对应的 API 接口权限后可以使用功能的描述

# 返回

返回APIPermissionDemand 对象。

# 错误码

详见错误码

# 示例

请求数据包

{
  "channel_id": "123456",
  "api_identify": {
    "path": "/guilds/{guild_id}",
    "method": "GET"
  },
  "desc": "显示频道信息"
}
1
2
3
4
5
6
7
8

响应数据包

{
  "guild_id": "xxxxxx",
  "channel_id": "123456",
  "api_identify": {
    "path": "/guilds/{guild_id}",
    "method": "GET"
  },
  "title": "王者机器人申请授权频道信息接口权限",
  "desc": "申请权限后才能正常使用机器人显示频道信息功能"
}
1
2
3
4
5
6
7
8
9
10
手机QQ扫码
开发者社区
加入官方频道开发者社区