Don't spam roles update

akairo
loicbersier 4 years ago
parent 8ae3d1f6ed
commit 3ac4d298f8

@ -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) {

Loading…
Cancel
Save