mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
Fix Regex
This commit is contained in:
@@ -66,7 +66,7 @@ client.on('commandError', (command, err) => {
|
||||
});
|
||||
|
||||
client.on('message', async (msg) => {
|
||||
if (msg.guild && msg.guild.settings.get('inviteGuard') && /(discord(.gg\/|app.com\/invite\/))/gi.test(msg.content)) {
|
||||
if (msg.guild && msg.guild.settings.get('inviteGuard') && /(discord(\.gg\/|app\.com\/invite\/))/gi.test(msg.content)) {
|
||||
if (msg.author.bot
|
||||
|| msg.member.hasPermission('ADMINISTRATOR')
|
||||
|| msg.author.id === msg.guild.ownerID
|
||||
|
||||
Reference in New Issue
Block a user