Esempio n. 1
0
 public async Task AddShortcut(string s, int index)
 {
     try
     {
         if (Looter.AddShortcut(s, index))
         {
             await ReplyAsync($"shortcut {s} wurde überschrieben");
         }
         else
         {
             await ReplyAsync($"shortcut {s} wurde erstellt");
         }
     }
     catch (IndexOutOfRangeException)
     {
         await ReplyAsync($"index {index} ist ungültig");
     }
 }