Correct word in member find title

This commit is contained in:
Ske 2020-02-15 14:14:27 +01:00
parent e70236b9c0
commit 2268a33600

View File

@ -119,7 +119,7 @@ namespace PluralKit.Bot
var searchTerm = ctx.RemainderOrNull() ?? throw new PKSyntaxError("You must specify a search term."); var searchTerm = ctx.RemainderOrNull() ?? throw new PKSyntaxError("You must specify a search term.");
var embedTitle = system.Name != null var embedTitle = system.Name != null
? $"Members of {system.Name.SanitizeMentions()} (`{system.Hid}`) **{searchTerm.SanitizeMentions()}**" ? $"Members of {system.Name.SanitizeMentions()} (`{system.Hid}`) matching **{searchTerm.SanitizeMentions()}**"
: $"Members of `{system.Hid}` matching **{searchTerm.SanitizeMentions()}**"; : $"Members of `{system.Hid}` matching **{searchTerm.SanitizeMentions()}**";
bool Filter(PKMember member) => bool Filter(PKMember member) =>