@@ -38,14 +38,14 @@ public InfractionModule(ModerationService moderationService, IOptions<ModixConfi
3838 // Discord doesn't currently give us many good options for default permissions.
3939 // Would be much better if the bot could set role-based defaults instead.
4040 // Goal is to at least make this not visible to ordinary users and visible to Associate+.
41- [ DefaultMemberPermissions ( ( GuildPermission ) ( 1UL << 43 ) ) ] // Currently undocumented, Create Expressions
41+ [ DefaultMemberPermissions ( GuildPermission . ViewAuditLog ) ]
4242 public async Task SearchAsync ( IMessage message )
4343 => await SearchAsync ( message . Author ) ;
4444
4545 [ SlashCommand ( "infractions" , "Displays all non-deleted infractions for a user." ) ]
4646 [ UserCommand ( "Infractions" ) ]
4747 [ RequireClaims ( AuthorizationClaim . ModerationRead ) ]
48- [ DefaultMemberPermissions ( ( GuildPermission ) ( 1UL << 43 ) ) ] // Currently undocumented, Create Expressions
48+ [ DefaultMemberPermissions ( GuildPermission . ViewAuditLog ) ]
4949 public async Task SearchAsync (
5050 [ Summary ( description : "The user whose infractions are to be displayed." ) ]
5151 IUser ? user = null )
@@ -133,7 +133,7 @@ public async Task DeleteAsync(
133133
134134 [ SlashCommand ( "infraction-update" , "Updates an infraction by ID, overwriting the existing reason." ) ]
135135 [ RequireAnyClaim ( AuthorizationClaim . ModerationUpdateInfraction , AuthorizationClaim . ModerationNote , AuthorizationClaim . ModerationWarn , AuthorizationClaim . ModerationMute , AuthorizationClaim . ModerationBan ) ]
136- [ DefaultMemberPermissions ( ( GuildPermission ) ( 1UL << 43 ) ) ] // Currently undocumented, Create Expressions
136+ [ DefaultMemberPermissions ( GuildPermission . ViewAuditLog ) ]
137137 public async Task UpdateAsync (
138138 [ Summary ( description : "The ID value of the infraction to be update." ) ]
139139 long infractionId ,
0 commit comments