Skip to content

Commit

Permalink
Display rule, not reason, for rule broken
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed May 5, 2022
1 parent 6bf83cf commit 59123e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hammer/Services/InfractionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public async Task<DiscordEmbed> CreateInfractionEmbedAsync(Infraction infraction
embedBuilder.AddField(EmbedFieldNames.UserID, infraction.UserId.ToString(), true);
embedBuilder.AddField(EmbedFieldNames.StaffMember, MentionUtility.MentionUser(infraction.StaffMemberId), true);
embedBuilder.AddField(EmbedFieldNames.TotalUserInfractions, infractionCount, true);
embedBuilder.AddField(EmbedFieldNames.RuleBroken, reason);
embedBuilder.AddField(EmbedFieldNames.RuleBroken, $"{rule!.Id} - {rule.Brief ?? rule.Description}", true);
embedBuilder.AddField(EmbedFieldNames.Reason, reason);

return embedBuilder.Build();
Expand Down

0 comments on commit 59123e3

Please sign in to comment.