feat: allow pinging roles

This commit is contained in:
2025-07-01 13:39:45 -07:00
parent 89e3e92fa6
commit 5a8e56d188

View File

@ -66,7 +66,14 @@ export const standup = async(
await Promise.all( await Promise.all(
filtered.map(async(channel) => { filtered.map(async(channel) => {
const sent = await channel. const sent = await channel.
send( send({ allowedMentions: {
roles: [
channels.find((c) => {
return c.channelId === channel.id;
})?.roleId ?? "692816967895220344",
],
},
content:
`Good morning <@&${ `Good morning <@&${
channels.find((c) => { channels.find((c) => {
return c.channelId === channel.id; return c.channelId === channel.id;
@ -75,8 +82,7 @@ export const standup = async(
1⃣ What did you accomplish yesterday? 1⃣ What did you accomplish yesterday?
2⃣ What are you working on today? 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(() => { catch(() => {
void logger.log( void logger.log(
"warn", "warn",