Exemple #1
0
 public async Task DeleteTempFile(string filename = "")
 {
     if (string.IsNullOrEmpty(filename))
     {
         await ReplyAsync("No filename provided.");
     }
     else
     {
         if (AttachmentHelper.DeleteFile(filename))
         {
             await ReplyAsync($"Deleted file `{filename}`.");
         }
         else
         {
             await ReplyAsync($"File `{filename}` not found.");
         }
     }
 }