Skip to main content

list_id type

This reference documents the Slack types at the platform level. Their availability and structure may differ in each SDK

Type: slack#/types/list_id

PropertyTypeDescription
defaultThe type that is being described.An optional parameter default value.
descriptionstringAn optional parameter description.
examplesAn array of the type being described.An optional list of examples.
hintstringAn optional parameter hint.
titlestringAn optional parameter title.
typestringString that defines the parameter type.

Declare the list_id type:

// ...
"current_bugs": {
"title": "Current Bug List",
"type": "slack#/types/list_id"
}
// ...
List ID example

In this example workflow, we disseminate meeting information.

import { Schema } from "deno-slack-sdk/mod.ts";
import { MeetingsWorkflow } from "../workflows/meetings.ts";

const inputForm = MeetingsWorkflow.addStep(
Schema.slack.functions.OpenForm,
{
title: "Meeting follow-up",
interactivity: MeetingsWorkflow.inputs.interactivity,
submit_label: "Meeting follow-up",
fields: {
elements: [
{
name: "channel",
title: "Channel to send info to",
type: Schema.slack.types.channel_id,
default: MeetingsWorkflow.inputs.channel,
},
{
name: "meetingdate",
title: "Meeting date",
type: Schema.slack.types.date,
},
{
name: "notes",
title: "Meeting notes",
type: Schema.slack.types.canvas_id
},
{
name: "actions",
title: "Meeting to-dos",
description: "Action items from the meeting",
type: Schema.slack.types.list_id
}
],
required: ["channel", "meetingdate","notes", "actions"],
},
},
);