Add acknowledgment button to alt-text reminders - Fixes #2

This commit is contained in:
2025-11-02 09:17:53 -08:00
parent 2058dfb82f
commit 1e8affd14a
4 changed files with 76 additions and 6 deletions
+18
View File
@@ -64,3 +64,21 @@ export const blocks = [
setURL("https://forum.nhcarrigan.com"),
),
];
// config for the acknowledgment button
export const createAckButton = (userId: string) => {
const button = new ButtonBuilder()
.setCustomId(`ack-${userId}`)
.setLabel("Got it!")
.setStyle(ButtonStyle.Secondary)
.setEmoji("✅");
const actionRow = new ActionRowBuilder<ButtonBuilder>()
.addComponents(button);
return [actionRow];
};
export const replyForUnauthorized = "❌ This button is only for the person who received the reminder.";