Switch to User#tag in web builds example

This commit is contained in:
Schuyler Cebulskie
2017-06-07 23:00:43 -04:00
parent 06f4c679d3
commit 3bf8192812

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');