don't allow discord.com/invite
This commit is contained in:
parent
bdf2b09f05
commit
8bc393937a
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class tweetCommand extends Command {
|
|||
|
||||
|
||||
if (args.text)
|
||||
if (args.text.includes('discord.gg')) return message.channel.send('No discord invite allowed.');
|
||||
if (args.text.includes('discord.gg') || args.text.includes('discord.com/invite/')) return message.channel.send('No discord invite allowed.');
|
||||
|
||||
|
||||
const client = this.client;
|
||||
|
|
Loading…
Reference in a new issue