This commit is contained in:
syuilo 2023-09-23 17:48:37 +09:00
parent a87b99b41b
commit d17f4d52c9
2 changed files with 7 additions and 5 deletions

10
locales/index.d.ts vendored
View File

@ -2250,12 +2250,14 @@ export interface Locale {
}; };
}; };
"_moderationLogTypes": { "_moderationLogTypes": {
"roleAssigned": string; "assignRole": string;
"roleUnassigned": string; "unassignRole": string;
"roleUpdated": string; "updateRole": string;
"suspend": string; "suspend": string;
"unsuspend": string; "unsuspend": string;
"addEmoji": string; "addCustomEmoji": string;
"updateServerSettings": string;
"updateUserNote": string;
}; };
} }
declare const locales: { declare const locales: {

View File

@ -49,7 +49,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
moderationNote: ps.text, moderationNote: ps.text,
}); });
this.moderationLogService.log(me, 'updateServerSettings', { this.moderationLogService.log(me, 'updateUserNote', {
userId: user.id, userId: user.id,
before: currentProfile.moderationNote, before: currentProfile.moderationNote,
after: ps.text, after: ps.text,