Table of Contents

频道相关事件

预声明变量

readonly KookSocketClient _client = null;

频道内用户添加 reaction

_client.ReactionAdded += (message, channel, user, reaction) => Task.CompletedTask;

频道内用户取消 reaction

_client.ReactionRemoved += (message, channel, user, reaction) => Task.CompletedTask;

频道消息更新

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

频道消息被删除

_client.MessageDeleted += (message, channel) => Task.CompletedTask;

新增频道

_client.ChannelCreated += channel => Task.CompletedTask;

修改频道信息

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

删除频道

_client.ChannelDestroyed += channel => Task.CompletedTask;

新的频道置顶消息

_client.MessagePinned += (before, after, channel, @operator) => Task.CompletedTask;

取消频道置顶消息

_client.MessageUnpinned += (before, after, channel, @operator) => Task.CompletedTask;