Merge remote-tracking branch 'origin/master'

This commit is contained in:
loicbersier 2020-07-04 22:08:06 +02:00
commit 208f52eda5
4 changed files with 4 additions and 2 deletions

View file

@ -7,6 +7,7 @@ class logCommand extends Command {
aliases: ['log', 'logging'], aliases: ['log', 'logging'],
category: 'admin', category: 'admin',
userPermissions: ['MANAGE_MESSAGES'], userPermissions: ['MANAGE_MESSAGES'],
clientPermissions: ['MANAGE_GUILD'],
channel: 'guild', channel: 'guild',
description: { description: {
content: 'Setup logging in current channel (W.I.P)', content: 'Setup logging in current channel (W.I.P)',

View file

@ -12,6 +12,7 @@ class memerclubCommand extends Command {
{ {
id: 'text', id: 'text',
type: 'string', type: 'string',
default: '',
match: 'rest' match: 'rest'
} }
], ],

View file

@ -53,7 +53,7 @@ class tweetCommand extends Command {
if (args.text) 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; const client = this.client;

View file

@ -13,7 +13,7 @@ class roleUpdateListener extends Listener {
} }
async exec(oldRole, newRole) { async exec(oldRole, newRole) {
if (oldRole === newRole) return; if (oldRole === newRole || oldRole.rawPosition !== newRole.rawPosition) return;
const guild = oldRole.guild; const guild = oldRole.guild;
const logStats = await LogStats.findOne({where: {guild: guild.id}}); const logStats = await LogStats.findOne({where: {guild: guild.id}});
if (logStats) { if (logStats) {