more logging
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user