Beispiel #1
0
 public async Task HandleMessageBulkDeleteAsync(IReadOnlyCollection <Cacheable <IMessage, ulong> > messages, IMessageChannel channel)
 {
     _logger.Information("Bulk deleting {Count} messages in channel {Channel}", messages.Count, channel.Id);
     await _messageStorage.BulkDelete(messages.Select(m => m.Id).ToList());
 }