API定义列表
公告
站点迁移啦~!
为什么迁移?
作为由我们官方维护的组件库,分散在各自的文档站点中的确有好处:它们可以各自维护自己所需的东西、互不干扰。
但是缺点也很明显: 太过分散。
组件库与核心库之间的关系是比较紧密的, 我们希望你能够在一个站点内就可以查阅或搜索到所有你想要得知的信息。
此处会列举 API 模块
中、 love.forte.simbot.kook.api
包下定义的所有 KookApi
实现。
- GetGatewayApi
love.forte.simbot.kook.api.GetGatewayApi
- Compress
love.forte.simbot.kook.api.GetGatewayApi.Compress
压缩数据
- NotCompress
love.forte.simbot.kook.api.GetGatewayApi.NotCompress
不进行数据压缩
- Resume
love.forte.simbot.kook.api.GetGatewayApi.Resume
用于内部重连恢复的
Resume
API。
- CreateAssetApi
love.forte.simbot.kook.api.asset.CreateAssetApi
与其他 API 实现不太一样的是,
CreateAssetApi.body
每次获取都会构建一个新的实例。在 JVM 平台中,还可以通过
AssetApis.xxx
使用更多平台特定的构建方式, 例如使用File
或Path
。- CreateChannelApi
love.forte.simbot.kook.api.channel.CreateChannelApi
- DeleteChannelApi
love.forte.simbot.kook.api.channel.DeleteChannelApi
- GetChannelListApi
love.forte.simbot.kook.api.channel.GetChannelListApi
- GetChannelViewApi
love.forte.simbot.kook.api.channel.GetChannelViewApi
- CreateGuildMuteApi
love.forte.simbot.kook.api.guild.CreateGuildMuteApi
- DeleteGuildMuteApi
love.forte.simbot.kook.api.guild.DeleteGuildMuteApi
- GetGuildBoostHistoryListApi
love.forte.simbot.kook.api.guild.GetGuildBoostHistoryListApi
- GetGuildListApi
love.forte.simbot.kook.api.guild.GetGuildListApi
- GetGuildMuteListApi
love.forte.simbot.kook.api.guild.GetGuildMuteListApi
- GetGuildViewApi
love.forte.simbot.kook.api.guild.GetGuildViewApi
- LeaveGuildApi
love.forte.simbot.kook.api.guild.LeaveGuildApi
- CreateInviteApi
love.forte.simbot.kook.api.invite.CreateInviteApi
- DeleteInviteApi
love.forte.simbot.kook.api.invite.DeleteInviteApi
- GetInviteListApi
love.forte.simbot.kook.api.invite.GetInviteListApi
- GetGuildMemberListApi
love.forte.simbot.kook.api.member.GetGuildMemberListApi
- KickoutMemberApi
love.forte.simbot.kook.api.member.KickoutMemberApi
- ModifyMemberNicknameApi
love.forte.simbot.kook.api.member.ModifyMemberNicknameApi
- AddChannelReactionApi
love.forte.simbot.kook.api.message.AddChannelReactionApi
- DeleteChannelMessageApi
love.forte.simbot.kook.api.message.DeleteChannelMessageApi
- DeleteChannelReactionApi
love.forte.simbot.kook.api.message.DeleteChannelReactionApi
- DeleteDirectMessageApi
love.forte.simbot.kook.api.message.DeleteDirectMessageApi
- GetChannelMessageListApi
love.forte.simbot.kook.api.message.GetChannelMessageListApi
- GetChannelMessageReactorListApi
love.forte.simbot.kook.api.message.GetChannelMessageReactorListApi
- GetChannelMessageViewApi
love.forte.simbot.kook.api.message.GetChannelMessageViewApi
- GetDirectMessageListApi
love.forte.simbot.kook.api.message.GetDirectMessageListApi
- GetDirectMessageViewApi
love.forte.simbot.kook.api.message.GetDirectMessageViewApi
- SendChannelMessageApi
love.forte.simbot.kook.api.message.SendChannelMessageApi
- SendDirectMessageApi
love.forte.simbot.kook.api.message.SendDirectMessageApi
- UpdateChannelMessageApi
love.forte.simbot.kook.api.message.UpdateChannelMessageApi
- UpdateDirectMessageApi
love.forte.simbot.kook.api.message.UpdateDirectMessageApi
- CreateGuildRoleApi
love.forte.simbot.kook.api.role.CreateGuildRoleApi
- DeleteGuildRoleApi
love.forte.simbot.kook.api.role.DeleteGuildRoleApi
- GetGuildRoleListApi
love.forte.simbot.kook.api.role.GetGuildRoleListApi
- GrantGuildRoleApi
love.forte.simbot.kook.api.role.GrantGuildRoleApi
- RevokeGuildRoleApi
love.forte.simbot.kook.api.role.RevokeGuildRoleApi
- UpdateGuildRoleApi
love.forte.simbot.kook.api.role.UpdateGuildRoleApi
- GetMeApi
love.forte.simbot.kook.api.user.GetMeApi
- GetUserViewApi
love.forte.simbot.kook.api.user.GetUserViewApi
- OfflineApi
love.forte.simbot.kook.api.user.OfflineApi
- CreateUserChatApi
love.forte.simbot.kook.api.userchat.CreateUserChatApi
- DeleteUserChatApi
love.forte.simbot.kook.api.userchat.DeleteUserChatApi
- GetUserChatListApi
love.forte.simbot.kook.api.userchat.GetUserChatListApi
- GetUserChatViewApi
love.forte.simbot.kook.api.userchat.GetUserChatViewApi