generated from Baipyrus/DiscordJS-Template
refactor: more verbose output
This commit is contained in:
parent
3fa0bd9c1f
commit
42293efb68
@ -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,
|
||||
});
|
||||
|
||||
|
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user