diff --git a/src/types.ts b/src/types.ts index da3c418a9..531e21b66 100644 --- a/src/types.ts +++ b/src/types.ts @@ -567,6 +567,7 @@ export type MessageResponseBase< }; latest_reactions?: ReactionResponse[]; mentioned_users?: UserResponse[]; + moderation_details?: ModerationDetailsResponse; own_reactions?: ReactionResponse[] | null; pin_expires?: string | null; pinned_at?: string | null; @@ -580,6 +581,18 @@ export type MessageResponseBase< updated_at?: string; }; +export type ModerationDetailsResponse = { + action: 'MESSAGE_RESPONSE_ACTION_BOUNCE' | (string & {}); + error_msg: string; + harms: ModerationHarmResponse[]; + original_text: string; +}; + +export type ModerationHarmResponse = { + name: string; + phrase_list_ids: number[]; +}; + export type MuteResponse = { user: UserResponse; created_at?: string;