mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 01:08:26 -04:00
fix: bannersize fixed, honeypot will now put 'Honeypot' as a ban reason
This commit is contained in:
@@ -71,7 +71,7 @@ public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoC
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
Log.Information("Honeypot caught user {User} [{UserId}]", user, user.Id);
|
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);
|
await user.Guild.RemoveBanAsync(user.Id);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@@ -417,7 +417,7 @@ public partial class Searches : NadekoModule<SearchesService>
|
|||||||
{
|
{
|
||||||
usr ??= (IGuildUser)ctx.User;
|
usr ??= (IGuildUser)ctx.User;
|
||||||
|
|
||||||
var bannerUrl = usr.GetGuildBannerUrl();
|
var bannerUrl = usr.GetGuildBannerUrl(size: 2048);
|
||||||
|
|
||||||
if (bannerUrl is null)
|
if (bannerUrl is null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user