mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18: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);
|
rep.Replace(text);
|
||||||
try
|
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);
|
await channel.SendAsync(text).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
Reference in New Issue
Block a user