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

This commit is contained in:
Toastie 2024-12-13 22:35:53 +13:00
parent e05792639c
commit 756555a061
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
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 : EllieModule<SearchesService>
{
usr ??= (IGuildUser)ctx.User;
var bannerUrl = usr.GetGuildBannerUrl();
var bannerUrl = usr.GetGuildBannerUrl(size: 2048);
if (bannerUrl is null)
{