mirror of https://github.com/oliverbooth/VPLink
style: use bold name in Discord relay
This commit is contained in:
parent
2ea18aee96
commit
d956c94aa0
|
@ -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)]
|
||||||
|
|
Loading…
Reference in New Issue