Skip to content

Commit

Permalink
Dehoist: Add info log on BadRequestException
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed Feb 5, 2025
1 parent 9439c23 commit e32ca3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Helpers/DehoistHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ await targetMember.ModifyAsync(a =>
});
return true;
}
catch
catch (Exception ex)
{
if (ex is DSharpPlus.Exceptions.BadRequestException)
Program.discord.Logger.LogInformation(Program.CliptokEventID, "Failed to dehoist member {memberId}! Discord said Bad Request. If this member's nickname is in violation of AutoMod rules, this is expected!", targetMember.Id);
return false;
}
}
Expand Down

0 comments on commit e32ca3a

Please sign in to comment.