diff --git a/src/client/infractions/Addrole.ts b/src/client/infractions/Addrole.ts index 30791ff..a69dfa4 100644 --- a/src/client/infractions/Addrole.ts +++ b/src/client/infractions/Addrole.ts @@ -76,6 +76,8 @@ class AddroleInfraction extends Infraction this.logger.error(`Infraction missing ${this.member ? 'roleIds' : 'member'}:\n${new Error().stack}`); return this._fail('INFRACTION_ERROR'); } + const existingRoles = this.member.roles.cache.keys(); + this.guild.debug(`Roles in cache: ${[ ...existingRoles ].join(', ')}`); try { this.guild.debug(`Adding roles ${this.data.roleIds.join(', ')} to ${this.member.tag} (${this.member.id})`);