Include bans in adminremarks command (#26240)

Fixes #20645

(cherry picked from commit f55c98ce6d1dfdc14a293f2559647372203938af)
This commit is contained in:
Pieter-Jan Briers 2024-03-18 22:31:34 +01:00 committed by NullWanderer
parent daf3ee7d13
commit 34784fc081
No known key found for this signature in database
GPG Key ID: 65CF92BD1D26F4AC
1 changed files with 2 additions and 0 deletions

View File

@ -1368,6 +1368,8 @@ INSERT INTO player_round (players_id, rounds_id) VALUES ({players[player]}, {id}
.Include(note => note.Player)
.ToListAsync()).Select(MakeAdminNoteRecord));
notesCol.AddRange(await GetMessagesImpl(db, player));
notesCol.AddRange(await GetServerBansAsNotesForUser(db, player));
notesCol.AddRange(await GetGroupedServerRoleBansAsNotesForUser(db, player));
return notesCol;
}