接口 ApiPermissionApi
public interface ApiPermissionApi
Api权限对象Api
-
方法概要
修饰符和类型方法说明createApiGrantLink(String bot_id, String guild_id, String channel_id, ApiPermissionDemandIdentify api_identify, String desc) 创建频道Api接口权限,授权链接getAPIPermissions(String bot_id, String guild_id) 获取频道可用权限列表
-
方法详细资料
-
createApiGrantLink
Tuple<ApiPermissionDemand,String> createApiGrantLink(String bot_id, String guild_id, String channel_id, ApiPermissionDemandIdentify api_identify, String desc) 创建频道Api接口权限,授权链接- 参数:
bot_id- 传入机器人IDguild_id- 频道IDchannel_id- 子频道IDapi_identify- Api权限需求标识对象desc- 机器人申请对于的API接口权限后,可使用功能的描述- 返回:
- Api接口权限需求对象
-
getAPIPermissions
获取频道可用权限列表- 参数:
bot_id- 传入机器人IDguild_id- 频道ID- 返回:
- 返回可用Api权限对象列表
-