safebooru shows direct link to the image now too, closes #1212
This commit is contained in:
		@@ -782,10 +782,11 @@ namespace NadekoBot.Modules.Searches
 | 
				
			|||||||
                await channel.SendErrorAsync(umsg.Author.Mention + " " + GetText("no_results"));
 | 
					                await channel.SendErrorAsync(umsg.Author.Mention + " " + GetText("no_results"));
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
                await channel.EmbedAsync(new EmbedBuilder().WithOkColor()
 | 
					                await channel.EmbedAsync(new EmbedBuilder().WithOkColor()
 | 
				
			||||||
                    .WithDescription(umsg.Author.Mention + " " + tag)
 | 
					                    .WithDescription($"{umsg.Author.Mention} [{tag}]({url})")
 | 
				
			||||||
                    .WithImageUrl(url)
 | 
					                    .WithImageUrl(url)
 | 
				
			||||||
                    .WithFooter(efb => efb.WithText(type.ToString()))).ConfigureAwait(false);
 | 
					                    .WithFooter(efb => efb.WithText(type.ToString()))).ConfigureAwait(false);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public async Task<bool> ValidateQuery(IMessageChannel ch, string query)
 | 
					        public async Task<bool> ValidateQuery(IMessageChannel ch, string query)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (!string.IsNullOrWhiteSpace(query)) return true;
 | 
					            if (!string.IsNullOrWhiteSpace(query)) return true;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user