public async Task setHitDie(int num) { 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 (num == 4 || num == 6 || num == 8 || num == 12 || num == 10 || num == 20 || num == 100) { character.setHitDie(num); await Context.User.SendMessageAsync("Hit die updated."); } else { await Context.User.SendMessageAsync("That is not a valid die."); } } }