GreetDmMessage will now show a footer with the source server -.-

This commit is contained in:
Kwoth
2022-01-06 05:09:01 +01:00
parent 7bd4db60a8
commit e1776d6093

View File

@@ -250,6 +250,16 @@ namespace NadekoBot.Services
rep.Replace(text);
try
{
if (text is SmartPlainText pt)
{
text = new SmartEmbedText() { PlainText = pt.Text };
}
((SmartEmbedText)text).Footer = new()
{
Text = $"This message was sent from {user.Guild} server.", IconUrl = user.Guild.IconUrl
};
await channel.SendAsync(text).ConfigureAwait(false);
}
catch