From 5a8e56d188fd731b77761b7e65435a64f13b011f Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Tue, 1 Jul 2025 13:39:45 -0700 Subject: [PATCH] feat: allow pinging roles --- src/modules/standup.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/standup.ts b/src/modules/standup.ts index 94b3767..01f8e3b 100644 --- a/src/modules/standup.ts +++ b/src/modules/standup.ts @@ -66,7 +66,14 @@ export const standup = async( await Promise.all( filtered.map(async(channel) => { const sent = await channel. - send( + send({ allowedMentions: { + roles: [ + channels.find((c) => { + return c.channelId === channel.id; + })?.roleId ?? "692816967895220344", + ], + }, + content: `Good morning <@&${ channels.find((c) => { return c.channelId === channel.id; @@ -75,8 +82,7 @@ export const standup = async( 1️⃣ What did you accomplish yesterday? 2️⃣ What are you working on today? -3️⃣ Are there any blockers or issues you need help with?`, - ). +3️⃣ Are there any blockers or issues you need help with?` }). catch(() => { void logger.log( "warn",