fix: bannersize fixed, honeypot will now put 'Honeypot' as a ban reason

This commit is contained in:
Kwoth
2024-12-12 08:56:45 +00:00
parent f44dd03f1a
commit 758093eb32
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoC
try
{
Log.Information("Honeypot caught user {User} [{UserId}]", user, user.Id);
await user.BanAsync(pruneDays: 1);
await user.BanAsync(pruneDays: 1, reason: "Honeypot");
await user.Guild.RemoveBanAsync(user.Id);
}
catch (Exception e)

View File

@@ -417,7 +417,7 @@ public partial class Searches : NadekoModule<SearchesService>
{
usr ??= (IGuildUser)ctx.User;
var bannerUrl = usr.GetGuildBannerUrl();
var bannerUrl = usr.GetGuildBannerUrl(size: 2048);
if (bannerUrl is null)
{