Fix channelCreate being emitted twice - fixes #698

This commit is contained in:
Amish Shah
2016-09-13 19:59:52 +01:00
parent cdf3136cde
commit f7e89f61e6
3 changed files with 6 additions and 5 deletions

View File

@@ -14,6 +14,10 @@ client.on('ready', () => {
console.log('ready!');
});
client.on('channelCreate', channel => {
console.log(`made ${channel.name}`);
});
client.on('guildMemberAdd', (g, m) => {
console.log(`${m.user.username} joined ${g.name}`);
})