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": {
"roleAssigned": string;
"roleUnassigned": string;
"roleUpdated": string;
"assignRole": string;
"unassignRole": string;
"updateRole": string;
"suspend": string;
"unsuspend": string;
"addEmoji": string;
"addCustomEmoji": string;
"updateServerSettings": string;
"updateUserNote": string;
};
}
declare const locales: {

View File

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