refactor: more verbose output

This commit is contained in:
Baipyrus 2024-02-05 03:06:53 +01:00
parent 3fa0bd9c1f
commit 42293efb68
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export async function execute(interaction) {
// Reply successfully to acknowledge command
await interaction.reply({
content: 'Successfully saved data from message!',
content: `Successfully saved data from message! Add roles to it with reference ID '${id}'.`,
ephemeral: true,
});

View File

@ -80,7 +80,7 @@ const addSelfRoles = async (interaction) => {
]
}
});
if (rep !== null) throw new Error();
if (rep !== null) throw new Error(`Failed to fetch RoleEmojiPair entry with data {message:${id},role:${role.id},emoji:${emoji}}!`);
// Create database entry for pair
await RoleEmojiPair.create({ message: id, role: role.id, emoji });