Skip to content

Commit

Permalink
Fix booru errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwilarg committed Sep 19, 2024
1 parent eebf73d commit a3a2dc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sanara/Module/Command/Impl/Doujin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public async Task BooruAsync(IContext ctx)
}
}

if (!isChanSfw && post.Rating == Rating.Explicit)
if (isChanSfw && post.Rating == Rating.Explicit)
{
throw new CommandFailed("The image found have an unexpected rating of explicit");
}
Expand Down
4 changes: 3 additions & 1 deletion Sanara/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using Sanara.Subscription;
using Sanara.Game;
using Sanara.Module.Utility;
using System.Web;

namespace Sanara;

Expand Down Expand Up @@ -448,7 +449,8 @@ private async Task ButtonExecuted(SocketMessageComponent arg)
Description = $"Tags\n{string.Join(", ", data.Tags)}",
ImageUrl = data.PreviewUrl?.ToString()
};
embed.AddField("Size", $"{data.Width}x{data.Height}");
embed.AddField("Size", $"{data.Width}x{data.Height}", true);
if (data.Source != null) embed.AddField("Source", HttpUtility.HtmlDecode(data.Source), true);
await ctx.ReplyAsync(embed: embed.Build(), ephemeral: true);
_pendingRequests.Remove(arg.User.Id);
}
Expand Down

0 comments on commit a3a2dc6

Please sign in to comment.