public async Task setHitDice(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 { character.setHitDice(num); character.setHitDiceRemaining(num); await Context.User.SendMessageAsync("You have updated your Hit Dice to " + num); } }