Properly sanitize raw member description output
This commit is contained in:
parent
a1d91784a0
commit
8b55e1364d
@ -84,7 +84,7 @@ namespace PluralKit.Bot
|
|||||||
else
|
else
|
||||||
await ctx.Reply("This member does not have a description set.");
|
await ctx.Reply("This member does not have a description set.");
|
||||||
else if (ctx.MatchFlag("r", "raw"))
|
else if (ctx.MatchFlag("r", "raw"))
|
||||||
await ctx.Reply($"```\n{target.Description}\n```");
|
await ctx.Reply($"```\n{target.Description.SanitizeMentions()}\n```");
|
||||||
else
|
else
|
||||||
await ctx.Reply(embed: new EmbedBuilder()
|
await ctx.Reply(embed: new EmbedBuilder()
|
||||||
.WithTitle("Member description")
|
.WithTitle("Member description")
|
||||||
|
Loading…
Reference in New Issue
Block a user