Add discordapp invite filter

This commit is contained in:
Gonçalo Pereira 2022-10-31 12:13:54 +00:00
parent 7833a41ffd
commit fbdf26ff7a

View file

@ -73,7 +73,7 @@ export default {
return; return;
} }
// Do not allow discord invites // Do not allow discord invites
if (tweet.includes('discord.gg') || tweet.includes('discord.com/invite/')) { if (tweet.includes('discord.gg') || tweet.includes('discord.com/invite/') || tweet.includes('discordapp.com/invite/')) {
await interaction.editReply({ content: 'No discord invites allowed.' }); await interaction.editReply({ content: 'No discord invites allowed.' });
return; return;
} }