refactor: Remove interaction deferrals, use direct replies, and make error/warning messages ephemeral in economy commands.

This commit is contained in:
syntaxbullet
2025-12-13 12:46:38 +01:00
parent 421bb26ceb
commit 86cbe827a2
3 changed files with 14 additions and 13 deletions

View File

@@ -49,7 +49,12 @@ export const trade = createCommand({
} catch (e) {
// Fallback if message threads fail, try channel threads (private preferred)
// But startThread on message is usually easiest.
await interaction.editReply({ content: "", embeds: [createErrorEmbed("Failed to create trade thread. Check permissions.")] });
try {
await message.delete();
} catch (err) {
console.error("Failed to delete setup message", err);
}
await interaction.followUp({ embeds: [createErrorEmbed("Failed to create trade thread. Check permissions.")], ephemeral: true });
return;
}