UNPKG

slack-block-builder

Version:

Maintainable code for interactive Slack messages, modals, home tabs, and workflow steps. A must-have for the Slack Block Kit framework.

28 lines (27 loc) 840 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileBuilder = void 0; const base_1 = require("../internal/base"); const constants_1 = require("../internal/constants"); const dto_1 = require("../internal/dto"); const helpers_1 = require("../internal/helpers"); const methods_1 = require("../internal/methods"); /** * @@link https://api.slack.com/reference/block-kit/blocks#file * @@displayName File */ class FileBuilder extends base_1.BlockBuilderBase { /** @internal */ build() { return this.getResult(dto_1.SlackBlockDto, { type: constants_1.BlockType.File, source: constants_1.FileType.Remote, }); } } exports.FileBuilder = FileBuilder; helpers_1.applyMixins(FileBuilder, [ methods_1.BlockId, methods_1.End, methods_1.ExternalId, ]);