Beispiel #1
0
 private void AutoUpdateDiscordBatch()
 {
     if (!Properties.Settings.Default.AutoDiscordBatch)
     {
         return;
     }
     AddTraceMessage("Discord: Auto update Discord Batch");
     ChkAutoDiscordBatch.Enabled = false;
     foreach (ulong id in _currentDiscordMessageIDs)
     {
         AddTraceMessage("Discord: deleting existing message " + id);
         try
         {
             WebhookController.DeleteMessage(Properties.Settings.Default.WebhookURL, id, out string message);
             AddTraceMessage("Discord: deleted existing message " + message);
         }
         catch (Exception ex)
         {
             AddTraceMessage("Discord: couldn't deleted existing message " + ex.Message);
         }
     }
     _currentDiscordMessageIDs.Clear();
     DiscordBatch(out _currentDiscordMessageIDs);
     ChkAutoDiscordBatch.Enabled = true;
 }
 private void AutoUpdateDiscordBatch()
 {
     if (!Properties.Settings.Default.AutoDiscordBatch)
     {
         return;
     }
     AddTraceMessage("Auto update Discord Batch");
     ChkAutoDiscordBatch.Enabled = false;
     foreach (ulong id in _currentDiscordMessageIDs)
     {
         WebhookController.DeleteMessage(Properties.Settings.Default.WebhookURL, id, out _);
     }
     DiscordBatch(out _currentDiscordMessageIDs);
     ChkAutoDiscordBatch.Enabled = true;
 }