Switch to User#tag in web builds example

This commit is contained in:
Schuyler Cebulskie
2017-06-07 23:00:43 -04:00
committed by Crawl
parent 3f7049e1a0
commit 95a531ee7d

View File

@@ -30,7 +30,7 @@ The usage of the API isn't any different from using it in Node.js.
client.on('message', msg => {
const guildTag = msg.channel.type === 'text' ? `[${msg.guild.name}]` : '[DM]';
const channelTag = msg.channel.type === 'text' ? `[#${msg.channel.name}]` : '';
console.log(`${guildTag}${channelTag} ${msg.author.username}#${msg.author.discriminator}: ${msg.content}`);
console.log(`${guildTag}${channelTag} ${msg.author.tag}: ${msg.content}`);
});
client.login('some crazy token');