public async Task setPrimaryStat(string stat) { if (characters == null) { characters = new List <CharacterNode>(); } CharacterNode character = findCharacter(Context.User); if (character == null) { await Context.User.SendMessageAsync("You have no active character."); } else { if (character.determineValidStat(stat)) { character.setPrimaryStat(stat); await Context.Channel.SendMessageAsync("Primary stat updated."); } else { await Context.Channel.SendMessageAsync("That is not a valid stat."); } } }