more logging

This commit is contained in:
mo
2026-03-01 17:52:06 +01:00
parent 93788b9873
commit f20bdde4e6
3 changed files with 20 additions and 4 deletions

View File

@@ -27,14 +27,16 @@ export class ReactionRolesService {
if (!message) {
this.logger.error(`Message with ID ${reaction.message.id} not found.`);
throw new Error("Message not found");
return;
// throw new Error("Message not found");
}
if (!config.reactionRoles.allowedMessageIds.includes(message.id)) {
this.logger.error(
`Message with ID ${message.id} is not allowed for reaction roles.`,
);
throw new Error("Message not allowed for reaction roles");
return;
// throw new Error("Message not allowed for reaction roles");
}
return;