mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix channelCreate being emitted twice - fixes #698
This commit is contained in:
@@ -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}`);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user