mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05: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