Need 3rd argument to be a integer

const Discord = require(‘discord.js’);
const { prefix, token } = require(’./config.json’);
const client = new Discord.Client();

client.once(‘ready’, () => {
console.log(‘Ready!’);
});

client.on(‘message’, message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;

const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase();

if (command === 'ping') {
    message.channel.send('Pong.');
} else if (command === 'givexp') {
    if (!message.mentions.users.size) {
        return message.reply('You failed to mention a user to give XP to!');
    }
const command2 = args.shift().toLowerCase();
    const taggedUser = message.mentions.users.first();
if (command2 === taggedUser) {
}
const command3 = args.shift();
if (command3 == isNaN()) {
    return message.reply('You failed to specify an amount of XP!');
} else {
    return message.reply(`Giving ${command3} XP to: ${taggedUser}`);
}
} else if (command === 'stop') {
message.channel.send('Stopping...').then(() => {
process.exit();
});
}

});

client.login(token);

Is my code.

if (!isNaN(command3)) {
  ...
}

Hope that helps!

2 Likes