From f163f2c9ea74ca0897cdbb2d03f8d470cb6a5c7f Mon Sep 17 00:00:00 2001 From: Navy Date: Thu, 17 Oct 2024 22:50:34 +0300 Subject: [PATCH] Debug statement --- src/client/infractions/Addrole.ts | 2 ++ 1 file changed, 2 insertions(+) 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})`);