mirror of
https://github.com/danbulant/discord.js
synced 2026-06-22 00:02:13 +00:00
docs(Examples): fix usage of removed overload of Collection#find (#3027)
This commit is contained in:
parent
8230255c68
commit
3dff5058f0
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ client.on('ready', () => {
|
||||||
// Create an event listener for new guild members
|
// Create an event listener for new guild members
|
||||||
client.on('guildMemberAdd', member => {
|
client.on('guildMemberAdd', member => {
|
||||||
// Send the message to a designated channel on a server:
|
// Send the message to a designated channel on a server:
|
||||||
const channel = member.guild.channels.find('name', 'member-log');
|
const channel = member.guild.channels.find(ch => ch.name === 'member-log');
|
||||||
// Do nothing if the channel wasn't found on this server
|
// Do nothing if the channel wasn't found on this server
|
||||||
if (!channel) return;
|
if (!channel) return;
|
||||||
// Send the message, mentioning the member
|
// Send the message, mentioning the member
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue