Esempio n. 1
0
        public async Task OnMessageDelete(Cacheable <IMessage, ulong> message, ISocketMessageChannel channel)
        {
            var method = new MessageDeleted(Client, Config, MessageCache, HttpClient, LoggingService);
            await method.ProcessAsync(message, channel).ConfigureAwait(false);

            IncrementEventHandle("MessageDeleted");
        }
Esempio n. 2
0
        public async Task OnMessageDelete(Cacheable <IMessage, ulong> message, ISocketMessageChannel channel)
        {
            if (!CanProcessEvent("MessageDeleted"))
            {
                return;
            }

            var method = new MessageDeleted(Client, Config, MessageCache, HttpClient, AppLogger);
            await method.ProcessAsync(message, channel).ConfigureAwait(false);

            EventPostProcess("MessageDeleted");
        }