Exemple #1
0
 public static AfkCommand GetAfkCommand(AfkCommandType type)
 {
     return(JsonHelper.BotData.CommandLists.AfkCommands.Where(cmd => cmd.CommandName == type.ToString().ToLower()).FirstOrDefault());
 }
Exemple #2
0
 public AfkCommand this[AfkCommandType type] => AfkCommands.FirstOrDefault(cmd => cmd.Name.ToLower() == type.ToString().ToLower());