No invites fam

This commit is contained in:
Daniel Odendahl Jr
2017-09-02 21:42:33 +00:00
parent fb03917c52
commit cf42de654c
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class PortalSendCommand extends Command {
type: 'string',
validate: message => {
if (message.length > 1500) return 'Message must be under 1500 characters.';
if (!/discord(\.gg\/|app\.com\/invite\/|\.me\/)/gi.test(message)) return true;
if (!/discord(\.gg|app\.com\/invite|\.me)\//gi.test(message)) return true;
return 'Please do not send invites.';
}
}