Skip to main content

@slack/web-api / FilesCompleteUploadExternalArguments

Type Alias: FilesCompleteUploadExternalArguments

type FilesCompleteUploadExternalArguments = FileDestinationArgument & TokenOverridable & object;

Defined in: packages/web-api/src/types/request/files.ts:71

Type Declaration​

blocks?​

optional blocks?: (KnownBlock | Block)[];

Description​

An array of structured rich text blocks. If the initial_comment field is provided, the blocks field is ignored.

Example​

[{"type": "section", "text": {"type": "plain_text", "text": "Hello world"}}]

See​

https://docs.slack.dev/reference/block-kit/blocks

files​

files: [FileUploadComplete, ...FileUploadComplete[]];

Description​

Array of file IDs and their corresponding (optional) titles.

Example​

[{"id":"F044GKUHN9Z", "title":"slack-test"}]

initial_comment?​

optional initial_comment?: string;

Description​

The message text introducing the file in the specified channel.