style: use bold name in Discord relay

This commit is contained in:
Oliver Booth 2023-08-22 15:07:49 +01:00
parent 2ea18aee96
commit d956c94aa0
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
using System.Reactive.Linq; using System.Reactive.Linq;
using System.Reactive.Subjects; using System.Reactive.Subjects;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Discord; using Discord;
@ -94,7 +94,7 @@ internal sealed partial class DiscordService : BackgroundService, IDiscordServic
string escaped = EscapeRegex.Replace(unescaped, "\\$1"); string escaped = EscapeRegex.Replace(unescaped, "\\$1");
string displayName = author.Name; string displayName = author.Name;
return channel.SendMessageAsync($"{displayName}: {escaped}"); return channel.SendMessageAsync($"**{displayName}**: {escaped}");
} }
[GeneratedRegex(@"\\(\*|_|`|~|\\)", RegexOptions.Compiled)] [GeneratedRegex(@"\\(\*|_|`|~|\\)", RegexOptions.Compiled)]