fixed .qdel and greetdmmessage if it's an embed, thanks to gwen lol
This commit is contained in:
		@@ -170,7 +170,7 @@ namespace NadekoBot.Modules.Utility
 | 
			
		||||
 | 
			
		||||
            [NadekoCommand, Usage, Description, Aliases]
 | 
			
		||||
            [RequireContext(ContextType.Guild)]
 | 
			
		||||
            public async Task DeleteQuote(int id)
 | 
			
		||||
            public async Task QuoteDelete(int id)
 | 
			
		||||
            {
 | 
			
		||||
                var isAdmin = ((IGuildUser) Context.Message.Author).GuildPermissions.Administrator;
 | 
			
		||||
                
 | 
			
		||||
 
 | 
			
		||||
@@ -141,7 +141,7 @@ namespace NadekoBot.Services
 | 
			
		||||
                        if (channel != null)
 | 
			
		||||
                        {
 | 
			
		||||
                            CREmbed embedData;
 | 
			
		||||
                            if (CREmbed.TryParse(conf.ChannelGreetMessageText, out embedData))
 | 
			
		||||
                            if (CREmbed.TryParse(conf.DmGreetMessageText, out embedData))
 | 
			
		||||
                            {
 | 
			
		||||
                                embedData.PlainText = embedData.PlainText?.Replace("%user%", user.ToString()).Replace("%id%", user.Id.ToString()).Replace("%server%", user.Guild.Name);
 | 
			
		||||
                                embedData.Description = embedData.Description?.Replace("%user%", user.ToString()).Replace("%id%", user.Id.ToString()).Replace("%server%", user.Guild.Name);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user