Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion packages/types/src/events/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,38 @@ export interface AppMentionEvent {
attachments?: MessageAttachment[];
blocks?: (KnownBlock | Block)[];
// TODO: Add more properties once the types library has a file object definition
files?: { id: string }[];
files?: {
id: string;
created: number;
timestamp: number;
name: string;
title: string;
mimetype: string;
filetype: string;
pretty_type: string;
user: string;
user_team: string;
editable: boolean;
size: number;
mode: string;
is_external: boolean;
external_type: string;
is_public: boolean;
public_url_shared: boolean;
display_as_bot: boolean;
username: string;
url_private: string;
url_private_download: string;
media_display_type: string;
thumb_pdf?: string;
thumb_pdf_w?: number;
thumb_pdf_h?: number;
permalink: string;
permalink_public: string;
is_starred: boolean;
has_rich_preview: boolean;
file_access: string;
}[];
upload?: boolean;
display_as_bot?: boolean;
edited?: {
Expand Down