mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
GreetDmMessage will now show a footer with the source server -.-
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user