diff --git a/commands/admin/log.js b/commands/admin/log.js index 03bfb9be..63c7e7e2 100644 --- a/commands/admin/log.js +++ b/commands/admin/log.js @@ -7,6 +7,7 @@ class logCommand extends Command { aliases: ['log', 'logging'], category: 'admin', userPermissions: ['MANAGE_MESSAGES'], + clientPermissions: ['MANAGE_GUILD'], channel: 'guild', description: { content: 'Setup logging in current channel (W.I.P)', diff --git a/commands/general/memerclub.js b/commands/general/memerclub.js index 96d148fb..46f3a20c 100644 --- a/commands/general/memerclub.js +++ b/commands/general/memerclub.js @@ -12,6 +12,7 @@ class memerclubCommand extends Command { { id: 'text', type: 'string', + default: '', match: 'rest' } ], diff --git a/commands/general/tweet.js b/commands/general/tweet.js index f98ab422..e13e4381 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -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; diff --git a/event/listeners/log/roleUpdate.js b/event/listeners/log/roleUpdate.js index 45eae9fb..bb8a9a4d 100644 --- a/event/listeners/log/roleUpdate.js +++ b/event/listeners/log/roleUpdate.js @@ -13,7 +13,7 @@ class roleUpdateListener extends Listener { } async exec(oldRole, newRole) { - if (oldRole === newRole) return; + if (oldRole === newRole || oldRole.rawPosition !== newRole.rawPosition) return; const guild = oldRole.guild; const logStats = await LogStats.findOne({where: {guild: guild.id}}); if (logStats) {