Skip to content

Commit

Permalink
hotfix for NP removal spam
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixrec committed Nov 9, 2023
1 parent 21f7965 commit 959ab68
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Izzy-Moonbot/Service/ScheduleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ private async Task Unicycle_RemoveRole(ScheduledRoleRemovalJob job, IIzzyGuild g
$"Removing {role.Name} ({role.Id}) from {user.DisplayName} ({user.Username}/{user.Id})", level: LogLevel.Debug);

await _mod.RemoveRole(user, role.Id, reason);
await _modLogging.CreateModLog(guild)
.SetContent(
$"Removed <@&{role.Id}> from <@{user.Id}> (`{user.Id}`)")
.SetFileLogContent(
$"Removed {role.Name} ({role.Id}) from {user.DisplayName} ({user.Username}/{user.Id}). {(reason != null ? $"Reason: {reason}." : "")}")
.Send();
//await _modLogging.CreateModLog(guild)
// .SetContent(
// $"Removed <@&{role.Id}> from <@{user.Id}> (`{user.Id}`)")
// .SetFileLogContent(
// $"Removed {role.Name} ({role.Id}) from {user.DisplayName} ({user.Username}/{user.Id}). {(reason != null ? $"Reason: {reason}." : "")}")
// .Send();
}

private async Task Unicycle_Unban(ScheduledUnbanJob job, IIzzyGuild guild, IIzzyClient client)
Expand Down

0 comments on commit 959ab68

Please sign in to comment.