From 858de42d4a2c7befed48549ae37eedc14af2e725 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 12 May 2020 17:52:06 +0200 Subject: [PATCH] Fix includes error Signed-off-by: loicbersier --- commands/general/tweet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/general/tweet.js b/commands/general/tweet.js index 3d55d344..f98ab422 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;