mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
No invites fam
This commit is contained in:
@@ -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.';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user