From 758093eb32706a4d7fb785673e3dc3a125b8cbdb Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 12 Dec 2024 08:56:45 +0000 Subject: [PATCH] fix: bannersize fixed, honeypot will now put 'Honeypot' as a ban reason --- .../Modules/Administration/Honeypot/HoneyPotService.cs | 2 +- src/NadekoBot/Modules/Searches/Searches.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Honeypot/HoneyPotService.cs b/src/NadekoBot/Modules/Administration/Honeypot/HoneyPotService.cs index 6b9cf434c..41279487c 100644 --- a/src/NadekoBot/Modules/Administration/Honeypot/HoneyPotService.cs +++ b/src/NadekoBot/Modules/Administration/Honeypot/HoneyPotService.cs @@ -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) diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index 93b9fbff0..8bf9d7b13 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -417,7 +417,7 @@ public partial class Searches : NadekoModule { usr ??= (IGuildUser)ctx.User; - var bannerUrl = usr.GetGuildBannerUrl(); + var bannerUrl = usr.GetGuildBannerUrl(size: 2048); if (bannerUrl is null) {