generated from nhcarrigan/template
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user