diff --git a/commands/general/tweet.js b/commands/general/tweet.js index 3d55d34..f98ab42 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -52,7 +52,8 @@ class tweetCommand extends Command { } - if (args.text.includes('discord.gg')) return message.channel.send('No discord invite allowed.'); + if (args.text) + if (args.text.includes('discord.gg')) return message.channel.send('No discord invite allowed.'); const client = this.client;