Пример #1
0
 public static async Task ReceivedMessageEvent(SocketMessage arg)
 {
     if (arg.Channel.Id != DiscordContextOverseer.GetLoggingChannel().Id) //avoid caching images the bot is posting
     {
         var names  = new List <string>();
         var result = GetImageUrls(arg, out names);
         if (result != null)
         {
             await ImageCacheManager.CacheImageAsync(result, names, arg.Id);
         }
     }
 }