🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.
← Discord + ClickUp integrations

Create List with ClickUp APIon New Message from Discord API

Pipedream makes it easy to connect APIs for ClickUp, Discord and 700+ other apps remarkably fast.

Trigger workflow on
New Message from the Discord API
Next, do this
Create List with the ClickUp API
No credit card required
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a Discord trigger and ClickUp action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Message trigger
    1. Connect your Discord account
    2. Configure Channels
    3. Configure discordApphook
    4. Configure Ignore myself
  3. Configure the Create List action
    1. Connect your ClickUp account
    2. Optional- Select a Workspace
    3. Optional- Select a Space
    4. Optional- Select a Folder
    5. Configure Name
    6. Optional- Configure Content
    7. Optional- Select a Priority
    8. Optional- Select one or more Assignees
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit an event for each message posted to one or more channels in a Discord server
Version:0.0.2
Key:discord-new-message

Trigger Code

const discord = require("../../discord-v2.app.js")

module.exports = {
  key: "discord-new-message",
  name: 'New Message',
  description: "Emit an event for each message posted to one or more channels in a Discord server",
  version: '0.0.2',
  dedupe: "unique",
  props: {
    discord,
    channels: {
      type: "$.discord.channel[]",
      appProp: "discord",
      label: "Channels",
      description: "Select the channel(s) you'd like to be notified for",
    },
    discordApphook: {
      type: "$.interface.apphook",
      appProp: "discord",
      async eventNames() {
        return this.channels || []
      },
    },
    ignoreMyself: {
      type: "boolean",
      label: "Ignore myself",
      description: "Ignore messages from me",
      default: true,
    },
  },
  async run(event) {
    if (event.guildID != this.discord.$auth.guild_id) {
      return
    }
    if (this.ignoreMyself && event.authorID == this.discord.$auth.oauth_uid) {
      return
    }
    this.$emit(event, { id: event.id })
  },
}

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
DiscorddiscordappThis component uses the Discord app.
Channelschannels$.discord.channel[]

Select the channel(s) you'd like to be notified for

discordApphook$.interface.apphook
Ignore myselfignoreMyselfboolean

Ignore messages from me

Trigger Authentication

Discord uses OAuth authentication. When you connect your Discord account, Pipedream will open a popup window where you can sign into Discord and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Discord API.

Pipedream requests the following authorization scopes when you connect your account:

botemailidentifyguilds

About Discord

Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.

Action

Description:Creates a new list. See the docs [here](https://clickup.com/api) in **Lists / Create List** section.
Version:0.0.6
Key:clickup-create-list

Action Code

import clickup from "../../clickup.app.mjs";
import common from "../common/common.mjs";
import constants from "../common/constants.mjs";

export default {
  key: "clickup-create-list",
  name: "Create List",
  description: "Creates a new list. See the docs [here](https://clickup.com/api) in **Lists  / Create List** section.",
  version: "0.0.6",
  type: "action",
  props: {
    ...common.props,
    spaceId: {
      propDefinition: [
        clickup,
        "spaces",
        (c) => ({
          workspaceId: c.workspaceId,
        }),
      ],
      optional: true,
    },
    folderId: {
      propDefinition: [
        clickup,
        "folders",
        (c) => ({
          spaceId: c.spaceId,
        }),
      ],
      optional: true,
    },
    name: {
      label: "Name",
      type: "string",
      description: "The name of list",
    },
    content: {
      label: "Content",
      type: "string",
      description: "The content of list",
      optional: true,
    },
    priority: {
      propDefinition: [
        clickup,
        "priorities",
      ],
      optional: true,
    },
    assignee: {
      propDefinition: [
        clickup,
        "assignees",
        (c) => ({
          workspaceId: c.workspaceId,
        }),
      ],
      optional: true,
    },
  },
  async run({ $ }) {
    const {
      spaceId,
      folderId,
      name,
      content,
      priority,
      assignee,
    } = this;

    let response;

    if (!folderId) {
      response = await this.clickup.createFolderlessList({
        $,
        spaceId,
        data: {
          name,
          content,
          priority: constants.PRIORITIES[priority] || constants.PRIORITIES["Normal"],
          assignee,
        },
      });
    } else {
      response = await this.clickup.createList({
        $,
        folderId,
        data: {
          name,
          content,
          priority: constants.PRIORITIES[priority] || constants.PRIORITIES["Normal"],
          assignee,
        },
      });
    }

    $.export("$summary", "Successfully created list");

    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
ClickUpclickupappThis component uses the ClickUp app.
WorkspaceworkspaceIdstringSelect a value from the drop down menu.
SpacespaceIdstringSelect a value from the drop down menu.
FolderfolderIdstringSelect a value from the drop down menu.
Namenamestring

The name of list

Contentcontentstring

The content of list

PriorityprioritystringSelect a value from the drop down menu:UrgentHighNormalLow
Assigneesassigneestring[]Select a value from the drop down menu.

Action Authentication

ClickUp uses OAuth authentication. When you connect your ClickUp account, Pipedream will open a popup window where you can sign into ClickUp and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any ClickUp API.

Pipedream requests the following authorization scopes when you connect your account:

About ClickUp

One app to replace them all

About Pipedream

Stop writing boilerplate code, struggling with authentication and managing infrastructure. Start connecting APIs with code-level control when you need it — and no code when you don't.

Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
"The past few weeks, I truly feel like the clichéd 10x engineer."
@heyellieday