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
| Property | Type | Description |
|---|---|---|
default | The type that is being described. | An optional parameter default value. |
description | string | An optional parameter description. |
examples | An array of the type being described. | An optional list of examples. |
hint | string | An optional parameter hint. |
title | string | An optional parameter title. |
type | string | String that defines the parameter type. |
Declare the list_id type:
- JSON manifest
- Deno Slack SDK
// ...
"current_bugs": {
"title": "Current Bug List",
"type": "slack#/types/list_id"
}
// ...
// ...
name: "current_bugs",
title: "Current Bug List",
type: Schema.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"],
},
},
);