Table of Contents

服务器相关事件

预声明变量

readonly KookSocketClient _client = null;

服务器信息更新

_client.GuildUpdated += (before, after) => Task.CompletedTask;

服务器删除

视同 自己退出服务器

_client.LeftGuild += guild => Task.CompletedTask;

服务器封禁用户

_client.UserBanned += (users, @operator, guild, reason) => Task.CompletedTask;

服务器取消封禁用户

_client.UserUnbanned += (users, @operator, guild) => Task.CompletedTask;

服务器添加新表情

_client.EmoteCreated += (emote, guild) => Task.CompletedTask;

服务器删除表情

_client.EmoteDeleted += (emote, guild) => Task.CompletedTask;

服务器更新表情

_client.EmoteUpdated += (before, after, guild) => Task.CompletedTask;