nsfw searches now post a link if it's a webm

This commit is contained in:
Master Kwoth 2017-06-11 16:31:43 +02:00
parent e69776beb1
commit c5e36caabc

View File

@ -59,7 +59,7 @@ namespace NadekoBot.Modules.NSFW
await channel.EmbedAsync(new EmbedBuilder().WithOkColor() await channel.EmbedAsync(new EmbedBuilder().WithOkColor()
.WithImageUrl(link) .WithImageUrl(link)
.WithDescription($"{GetText("tag")}: " + tag)) .WithDescription($"[{GetText("tag")}: {tag}]({link})"))
.ConfigureAwait(false); .ConfigureAwait(false);
} }
@ -297,7 +297,7 @@ namespace NadekoBot.Modules.NSFW
await ReplyErrorLocalized("not_found").ConfigureAwait(false); await ReplyErrorLocalized("not_found").ConfigureAwait(false);
else else
await Context.Channel.EmbedAsync(new EmbedBuilder().WithOkColor() await Context.Channel.EmbedAsync(new EmbedBuilder().WithOkColor()
.WithDescription(Context.User + " " + tag) .WithDescription($"{Context.User} [{tag}]({url}) ")
.WithImageUrl(url) .WithImageUrl(url)
.WithFooter(efb => efb.WithText(type.ToString()))).ConfigureAwait(false); .WithFooter(efb => efb.WithText(type.ToString()))).ConfigureAwait(false);
} }