mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
... (quoteprint) is now using smarttext
This commit is contained in:
@@ -82,14 +82,10 @@ namespace NadekoBot.Modules.Utility
|
|||||||
.WithDefault(Context)
|
.WithDefault(Context)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
if (CREmbed.TryParse(quote.Text, out var crembed))
|
var text = SmartText.CreateFrom(quote.Text);
|
||||||
{
|
text = rep.Replace(text);
|
||||||
rep.Replace(crembed);
|
|
||||||
await ctx.Channel.EmbedAsync(crembed.ToEmbed(_eb), $"`#{quote.Id}` 📣 " + crembed.PlainText?.SanitizeAllMentions() ?? "")
|
await ctx.Channel.SendAsync(_eb, $"`#{quote.Id}` 📣 " + text, true);
|
||||||
.ConfigureAwait(false);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
await ctx.Channel.SendMessageAsync($"`#{quote.Id}` 📣 " + rep.Replace(quote.Text)?.SanitizeAllMentions()).ConfigureAwait(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[NadekoCommand, Aliases]
|
[NadekoCommand, Aliases]
|
||||||
|
Reference in New Issue
Block a user