generated from nhcarrigan/template
Add acknowledgment button to alt-text reminders - Fixes #2
This commit is contained in:
@@ -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.";
|
||||
Reference in New Issue
Block a user