fix: ephemeral reply in process button module
Node.js CI / Lint and Test (push) Successful in 40s

This commit is contained in:
2025-11-02 09:14:42 -08:00
parent a915f50f1a
commit 6985e901ea
+3 -4
View File
@@ -24,12 +24,11 @@ export const processButton = async(
interaction: ButtonInteraction, interaction: ButtonInteraction,
): Promise<void> => { ): Promise<void> => {
try { try {
await interaction.deferReply(); await interaction.deferReply({ ephemeral: true });
const { customId, user, message } = interaction; const { customId, user, message } = interaction;
if (customId !== user.id) { if (customId !== user.id) {
await interaction.reply({ await interaction.editReply({
content: "You cannot acknowledge someone else's reminder.", content: "You cannot acknowledge someone else's reminder.",
ephemeral: true,
}); });
} }
await message.delete(); await message.delete();