private async Task HandleSetRoundRobinsStage(ITournamentState currentTournament, SocketMessage message) { if (!int.TryParse(message.Content, out int rounds)) { this.Logger.Debug("Round robin count specified couldn't be parsed as an int"); return; } else if (rounds <= 0 || rounds > TournamentState.MaxRoundRobins) { this.Logger.Debug("Round robin count ({0}) specified is invalid", rounds); await message.Channel.SendMessageAsync( BotStrings.InvalidNumberOfRoundRobins(TournamentState.MaxRoundRobins), options : RequestOptionsSettings.Default); return; } currentTournament.RoundRobinsCount = rounds; await this.UpdateStage(currentTournament, TournamentStage.AddTeams, message.Channel); }