Commit ee160bdb authored by Hugo "ThePooN" Denizart's avatar Hugo "ThePooN" Denizart
Browse files

馃攰 RoleManagement: Add more logging

parent e918b5f2
Pipeline #4487 passed with stages
in 3 minutes and 1 second
......@@ -35,10 +35,13 @@ export class RoleManagement {
rolesAddOperations.push(member.roles.add(roleId).catch((err) => this.logger.error(`An error occured while adding role ${roleId} to ${member.id}`, err)));
await Promise.all(rolesAddOperations);
this.logger.info(`Updated ${rolesAddOperations.length} members for ${reactionId} in ${messageId}`);
}
} else
this.logger.info(`Fetched no reaction for ${reactionId} in ${messageId}`);
}
})() as never);
Promise.all(operations).catch((err) => this.logger.error("An error occured while executing Discord ready operations", err));
Promise.all(operations)
.then(() => this.logger.info("onConnected operations done"))
.catch((err) => this.logger.error("An error occured while executing Discord ready operations", err));
});
app.discordClient.onReactionAdd.subscribe(({ reaction, member }) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment