Skip to content

Commit

Permalink
forgot to change a RemoveRoleAsync() to AddRoleAsync() during the sil…
Browse files Browse the repository at this point in the history
…ence->banish change
  • Loading branch information
Ixrec committed Oct 6, 2024
1 parent 3e37341 commit ccf67b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Izzy-Moonbot/Service/ModService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public async Task SilenceUser(SocketGuildUser user, string? reason)
}
public async Task SilenceUser(IIzzyGuildUser user, string? reason)
{
await user.RemoveRoleAsync(DiscordHelper.BanishedRoleId, reason is null ? null : new Discord.RequestOptions { AuditLogReason = reason });
await user.AddRoleAsync(DiscordHelper.BanishedRoleId, reason is null ? null : new Discord.RequestOptions { AuditLogReason = reason });

_users[user.Id].Silenced = true;
await FileHelper.SaveUsersAsync(_users);
Expand Down

0 comments on commit ccf67b6

Please sign in to comment.