Debug statement

This commit is contained in:
Erik 2024-10-17 22:50:34 +03:00
parent 09a72bfc83
commit f163f2c9ea

View File

@ -76,6 +76,8 @@ class AddroleInfraction extends Infraction
this.logger.error(`Infraction missing ${this.member ? 'roleIds' : 'member'}:\n${new Error().stack}`); this.logger.error(`Infraction missing ${this.member ? 'roleIds' : 'member'}:\n${new Error().stack}`);
return this._fail('INFRACTION_ERROR'); return this._fail('INFRACTION_ERROR');
} }
const existingRoles = this.member.roles.cache.keys();
this.guild.debug(`Roles in cache: ${[ ...existingRoles ].join(', ')}`);
try try
{ {
this.guild.debug(`Adding roles ${this.data.roleIds.join(', ')} to ${this.member.tag} (${this.member.id})`); this.guild.debug(`Adding roles ${this.data.roleIds.join(', ')} to ${this.member.tag} (${this.member.id})`);