fix(guild): render activity log entries deterministically (#2766)

This commit is contained in:
Hampus Kraft committed 2026-09-14 17:39:19 +02:00
1 parent ed10f9d323
commit a3d6cf37cb
135 files changed
+75869 -2708

No files matched your search

@@ -177,6 +177,13 @@ export class GuildMemberOperationsService {
connectionId: string | null;
auditLogReason?: string | null;
}): Promise<void> {
if (
params.previousChannelId !== null &&
params.newChannelId !== null &&
params.previousChannelId === params.newChannelId.toString()
) {
return;
}
const action = params.newChannelId === null ? AuditLogActionType.MEMBER_DISCONNECT : AuditLogActionType.MEMBER_MOVE;
const previousSnapshot = params.previousChannelId !== null ? {channel_id: params.previousChannelId} : null;
const nextSnapshot = params.newChannelId !== null ? {channel_id: params.newChannelId.toString()} : null;