Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 36557ce

Browse files
authored
Merge pull request #38 from techops-services/fix/checkin-post-mention
fix(checkins): use Discord mention in check-in posts
2 parents 1ff10d3 + d325535 commit 36557ce

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/checkins/src/formatter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import type { Checkin, Member } from "./types.js";
1111
* @returns Formatted message for channel post (plain text, no embed)
1212
*/
1313
export function formatCheckInPost(member: Member, checkin: Checkin): string {
14-
// Use display name with Discord ID so others can identify whose check-in this is
15-
const name = member.displayName ?? member.discordUserId;
14+
// Use Discord mention so the username renders and others can identify whose check-in this is
15+
const mention = `<@${member.discordUserId}>`;
1616

1717
// Build post content with newlines after each section
18-
let post = `**${name}'s Check-in** (${member.discordUserId})\n\n`;
18+
let post = `**${mention}'s Check-in**\n\n`;
1919
post += `**Done:**\n${checkin.yesterday}\n\n`;
2020
post += `**Next:**\n${checkin.today}`;
2121

0 commit comments

Comments
 (0)