Closed ForteScarlet closed 1 year ago
@HeilantG 底层API已经有实现,如果想通过提前使用可参考 https://docs.simbot.forte.love/components/kook/simbot-component-kook-api/love.forte.simbot.kook.api.guild.role/index.html 以查询 role-list 为例:
public void run(KookComponentBot bot) {
GuildRoleListRequest roleListApi = GuildRoleListRequest.create(Identifies.ID("abcd"));
KookApiResult.ListData<? extends Role> roleListData = roleListApi.requestBlockingBy(bot.getSourceBot());
List<? extends Role> roles = roleListData.getItems();
}
但是注意 https://github.com/simple-robot/simbot-component-kook/issues/82 ,API模块和标准库模块会大面积重构,如果使用底层API注意预留未来重构调整的空间。
Discussed in https://github.com/orgs/simple-robot/discussions/100