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
+3 -1
View File
@@ -5,6 +5,7 @@
*/
import { reminders } from "../config/reminders.js";
import { createAckButton } from "../utils/buttonAck.js";
import { getRandomValue } from "../utils/getRandomValue.js";
import { logger } from "../utils/logger.js";
import type { Message } from "discord.js";
@@ -33,7 +34,8 @@ export const checkAltText = async(message: Message): Promise<void> => {
if (noDescription.size > 0) {
const reminder = getRandomValue(reminders);
await message.reply({
content: `${reminder}\n-# If you do not know how to do this, check [Discord's help article](<https://support.discord.com/hc/en-us/articles/211866427-How-do-I-upload-images-and-GIFs>)!\n-# Need help writing descriptive text? Our bot [Cordelia](<https://cordelia.nhcarrigan.com>) can do it for you!`,
components: createAckButton(message.author.id),
content: `${reminder}\n-# If you do not know how to do this, check [Discord's help article](<https://support.discord.com/hc/en-us/articles/211866427-How-do-I-upload-images-and-GIFs>)!\n-# Need help writing descriptive text? Our bot [Cordelia](<https://cordelia.nhcarrigan.com>) can do it for you!`, // Button for acknowledgment
}).catch(() => {
return null;
});