From 8b7b5346192fea0d4d447b51d52eaaafa22e5d97 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sun, 11 Jun 2017 16:34:01 +0200 Subject: [PATCH] safebooru shows direct link to the image now too, closes #1212 --- src/NadekoBot/Modules/Searches/Searches.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index a4f1b93a..0780d365 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -782,10 +782,11 @@ namespace NadekoBot.Modules.Searches await channel.SendErrorAsync(umsg.Author.Mention + " " + GetText("no_results")); else await channel.EmbedAsync(new EmbedBuilder().WithOkColor() - .WithDescription(umsg.Author.Mention + " " + tag) + .WithDescription($"{umsg.Author.Mention} [{tag}]({url})") .WithImageUrl(url) .WithFooter(efb => efb.WithText(type.ToString()))).ConfigureAwait(false); } + public async Task ValidateQuery(IMessageChannel ch, string query) { if (!string.IsNullOrWhiteSpace(query)) return true;