Fixed ~autohentai
This commit is contained in:
parent
9cd3a16a02
commit
14b0689c8e
@ -48,8 +48,12 @@ namespace NadekoBot.Modules.NSFW
|
|||||||
}
|
}
|
||||||
var link = await provider.ConfigureAwait(false);
|
var link = await provider.ConfigureAwait(false);
|
||||||
if (string.IsNullOrWhiteSpace(link))
|
if (string.IsNullOrWhiteSpace(link))
|
||||||
|
{
|
||||||
|
if (noError)
|
||||||
await channel.SendErrorAsync("No results found.").ConfigureAwait(false);
|
await channel.SendErrorAsync("No results found.").ConfigureAwait(false);
|
||||||
else if (!noError)
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
await channel.EmbedAsync(new EmbedBuilder().WithOkColor()
|
await channel.EmbedAsync(new EmbedBuilder().WithOkColor()
|
||||||
.WithImageUrl(link)
|
.WithImageUrl(link)
|
||||||
.WithDescription("Tag: " + tag)).ConfigureAwait(false);
|
.WithDescription("Tag: " + tag)).ConfigureAwait(false);
|
||||||
|
@ -26,8 +26,6 @@ namespace NadekoBot.Services.Impl
|
|||||||
public int VoiceChannels => client.GetGuilds().SelectMany(g => g.Channels.Where(c => c is IVoiceChannel)).Count();
|
public int VoiceChannels => client.GetGuilds().SelectMany(g => g.Channels.Where(c => c is IVoiceChannel)).Count();
|
||||||
public string OwnerIds => string.Join(", ", NadekoBot.Credentials.OwnerIds);
|
public string OwnerIds => string.Join(", ", NadekoBot.Credentials.OwnerIds);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Timer carbonitexTimer { get; }
|
Timer carbonitexTimer { get; }
|
||||||
|
|
||||||
public StatsService(ShardedDiscordClient client, CommandHandler cmdHandler)
|
public StatsService(ShardedDiscordClient client, CommandHandler cmdHandler)
|
||||||
|
Loading…
Reference in New Issue
Block a user