Debug statement
This commit is contained in:
parent
09a72bfc83
commit
f163f2c9ea
@ -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})`);
|
||||||
|
Loading…
Reference in New Issue
Block a user