예제 #1
0
        private async Task ReactionsClearedAsync(Cacheable <IUserMessage, ulong> cachedMsg, ISocketMessageChannel channel)
        {
            var msg = await cachedMsg.DownloadAsync();

            if (msg == null)
            {
                return;
            }

            IChannelHandler handler = ChannelHandlers.ContainsKey(msg.Channel.Name) ? ChannelHandlers[msg.Channel.Name] : DefaultHandler;
            var             context = new ReactionContext(Context, msg);

            await handler.ReactionsCleared(context);
        }