fix: modlog not showing text on approve

This commit is contained in:
Mar0xy 2023-10-18 21:24:34 +02:00
parent 887f422511
commit 07b72c65b9
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
4 changed files with 6 additions and 0 deletions

View file

@ -2151,6 +2151,7 @@ _moderationLogTypes:
updateRole: "Role updated" updateRole: "Role updated"
assignRole: "Assigned to role" assignRole: "Assigned to role"
unassignRole: "Removed from role" unassignRole: "Removed from role"
approve: "Approved"
suspend: "Suspended" suspend: "Suspended"
unsuspend: "Unsuspended" unsuspend: "Unsuspended"
addCustomEmoji: "Custom emoji added" addCustomEmoji: "Custom emoji added"

1
locales/index.d.ts vendored
View file

@ -2300,6 +2300,7 @@ export interface Locale {
"updateRole": string; "updateRole": string;
"assignRole": string; "assignRole": string;
"unassignRole": string; "unassignRole": string;
"approve": string;
"suspend": string; "suspend": string;
"unsuspend": string; "unsuspend": string;
"addCustomEmoji": string; "addCustomEmoji": string;

View file

@ -2213,6 +2213,7 @@ _moderationLogTypes:
updateRole: "ロールを更新" updateRole: "ロールを更新"
assignRole: "ロールへアサイン" assignRole: "ロールへアサイン"
unassignRole: "ロールのアサイン解除" unassignRole: "ロールのアサイン解除"
approve: "承認済み"
suspend: "凍結" suspend: "凍結"
unsuspend: "凍結解除" unsuspend: "凍結解除"
addCustomEmoji: "カスタム絵文字追加" addCustomEmoji: "カスタム絵文字追加"

View file

@ -619,6 +619,9 @@ export type ModerationLog = {
} & ({ } & ({
type: 'updateServerSettings'; type: 'updateServerSettings';
info: ModerationLogPayloads['updateServerSettings']; info: ModerationLogPayloads['updateServerSettings'];
} | {
type: 'approve';
info: ModerationLogPayloads['approve'];
} | { } | {
type: 'suspend'; type: 'suspend';
info: ModerationLogPayloads['suspend']; info: ModerationLogPayloads['suspend'];