Don't spam roles update
This commit is contained in:
parent
8ae3d1f6ed
commit
3ac4d298f8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue