Skip to content

Commit

Permalink
Fix missing client params
Browse files Browse the repository at this point in the history
  • Loading branch information
hendraaagil committed Jul 26, 2021
1 parent 679328e commit 33dcb53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/intro.js
Original file line number Diff line number Diff line change
@@ -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
);
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 33dcb53

Please sign in to comment.