player - the player that completed the challenge
- if the bot is in a game, this will be a GamePlayer object
- if the bot is not in a game, this will be
bot.account
challenge - the challenge ID number
- if the
CHALLENGES intent is enabled AND the player is the bot, this will be from bot.account.challenges
bot.on('challengeComplete', (player, challenge) => {
if (player.id == bot.me.id) console.log(`the bot completed challenge ${challenge}!`);
else console.log(`${player.name} completed challenge ID ${challenge}!`);
});