This commit is contained in:
Erik 2022-06-28 17:54:00 +03:00
parent 288d660fd4
commit 5904f4cd47
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -66,7 +66,7 @@ class MuteInfraction extends Infraction {
this.member.roles.set([
...this.member.roles.cache.filter((r) => r.managed ||
r.comparePositionTo(this.guild.me.roles.highest) > 0 ||
r.id === this.guild.id).array(),
r.id === this.guild.id).values(),
role
], this._reason);
} catch (error) {