safebooru shows direct link to the image now too, closes #1212

This commit is contained in:
Master Kwoth 2017-06-11 16:34:01 +02:00
parent c5e36caabc
commit 8b7b534619

View File

@ -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<bool> ValidateQuery(IMessageChannel ch, string query)
{
if (!string.IsNullOrWhiteSpace(query)) return true;