From 42293efb6833537098c9c3a69b03f3c96d965d86 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 5 Feb 2024 03:06:53 +0100 Subject: [PATCH] refactor: more verbose output --- commands/admin/ctx_self_roles.js | 2 +- commands/admin/slash_self_roles.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/admin/ctx_self_roles.js b/commands/admin/ctx_self_roles.js index 04a8529..0777a5e 100644 --- a/commands/admin/ctx_self_roles.js +++ b/commands/admin/ctx_self_roles.js @@ -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, }); diff --git a/commands/admin/slash_self_roles.js b/commands/admin/slash_self_roles.js index c48cf13..c5c746b 100644 --- a/commands/admin/slash_self_roles.js +++ b/commands/admin/slash_self_roles.js @@ -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 });