public static async Task <TimeSpan> UpdateSpells() { DateTime start = DateTime.Now; JToken[] spells = await LoadCardJson(spellAPI, "spells"); SpellCard[] spellList = new SpellCard[spells.Length]; for (int i = 0; i < spells.Length; i++) { spellList[i] = new SpellCard(spells[i]); } spellList.Sort(); SpellCard.List = spellList; DateTime end = DateTime.Now; TimeSpan time = end - start; Client.DebugLogger.LogMessage(LogLevel.Debug, "APIManager", $"Spell list updated in {time}.", DateTime.Now); return(time); }