Simple Robot v4.7.0 Help

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 使用更多平台特定的构建方式, 例如使用 FilePath

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

获取私信聊天会话详情

Last modified: 15 November 2024