From 33dcb534bda3feb1a168ee2ba5feea5a5c9ce54f Mon Sep 17 00:00:00 2001 From: hendraaagil Date: Mon, 26 Jul 2021 20:42:50 +0700 Subject: [PATCH] Fix missing client params --- commands/intro.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/intro.js b/commands/intro.js index eb4e94c..2391168 100644 --- a/commands/intro.js +++ b/commands/intro.js @@ -1,7 +1,7 @@ module.exports = { name: 'intro', description: 'To validate user introduction after joining server', - execute: (message) => { + execute: (client, message) => { const chRole = message.guild.channels.cache.find( (channel) => channel.id === process.env.CH_ROLE_ID ); diff --git a/index.js b/index.js index 21a966e..f8fa92c 100644 --- a/index.js +++ b/index.js @@ -75,7 +75,7 @@ client.on('guildMemberRemove', (member) => { client.on('message', (message) => { if (message.channel.id === process.env.CH_INTRO_ID && !message.author.bot) { - commands.get('intro').execute(message); + commands.get('intro').execute(client, message); } else { const text = message.content.substring(prefix.length).split(' '); if (message.content.startsWith(prefix)) {