feat: return-based interaction reply edits

This commit is contained in:
TresAbhi committed 2023-06-16 02:01:06 +00:00
1 parent fbcd9e82e3
commit 4d9dc067af
19 files changed
+249 -306

No files matched your search

+2 -6
View File
@@ -26,7 +26,7 @@ export const SKILLED_CLANS: Record<SkilledClan, string> = {
export default {
inProduction: true,
inDevelopment: false,
inDevelopment: true,
inPublic: false,
command: new SlashCommandBuilder()
@@ -166,10 +166,6 @@ export default {
)}`;
}
await interaction.editReply({
embeds: isEligible
? [positiveEmbed(title, body)]
: [negativeEmbed(title, body)],
});
return (isEligible ? positiveEmbed : negativeEmbed)(title, body);
},
} satisfies CommandRegistry;