fix: reduce global react doctor warnings (#214)

This commit is contained in:
Eyejoker
2026-06-03 08:30:24 +08:00
committed by GitHub
parent 22602da1ec
commit 2dab27f443
5 changed files with 41 additions and 45 deletions

View File

@@ -415,12 +415,7 @@ export class DiscordChannel implements Channel {
.trim();
// Convert @username mentions to Discord mention format
const mentionMap: Record<string, string> = {
: '216851709744513024',
};
for (const [name, id] of Object.entries(mentionMap)) {
cleaned = cleaned.replace(new RegExp(`@${name}`, 'g'), `<@${id}>`);
}
cleaned = cleaned.replaceAll('@눈쟁이', '<@216851709744513024>');
cleaned = formatOutbound(cleaned);
// Discord has a 2000 character limit per message and 10 attachments per message