← Eventbrite + Discord Bot integrations

Add Role with Discord Bot API on New Order (Instant) from Eventbrite API

Pipedream makes it easy to connect APIs for Discord Bot, Eventbrite and 1000+ other apps remarkably fast.

Trigger workflow on
New Order (Instant) from the Eventbrite API
Next, do this
Add Role with the Discord Bot API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Eventbrite trigger and Discord Bot 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 Order (Instant) trigger
    1. Connect your Eventbrite account
    2. Select a Organization
  3. Configure the Add Role action
    1. Connect your Discord Bot account
    2. Select a Guild
    3. Select a User
    4. Select a Role
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available 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 new event when an order has been placed
Version:0.0.4
Key:eventbrite-new-order

Eventbrite Overview

With the Eventbrite API, you can build applications that:

  • Help event organizers sell tickets and promote their events
  • Allow eventgoers to find and buy tickets to events
  • Provide tools for event organizers to manage their events

Here are some examples of things you can build using the Eventbrite API:

  • A ticket sales and event promotion website or app
  • An event ticketing website or app
  • A event management tool for event organizers
  • A event search engine

Trigger Code

import common from "../common/webhook.mjs";

export default {
  ...common,
  key: "eventbrite-new-order",
  name: "New Order (Instant)",
  description: "Emit new event when an order has been placed",
  version: "0.0.4",
  dedupe: "unique",
  type: "source",
  methods: {
    ...common.methods,
    getActions() {
      return "order.placed";
    },
    async getData(order) {
      const { event_id: eventId } = order;
      const event = await this.eventbrite.getEvent(null, eventId);
      return {
        order,
        event,
      };
    },
    generateMeta({ order }) {
      const {
        id, created,
      } = order;
      return {
        id,
        summary: `New Order ID: ${id}`,
        ts: Date.parse(created),
      };
    },
  },
};

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
EventbriteeventbriteappThis component uses the Eventbrite app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
OrganizationorganizationstringSelect a value from the drop down menu.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.

Trigger Authentication

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

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

About Eventbrite

Eventbrite brings people together through live experiences. Discover events that match your passions, or create your own with online ticketing tools.

Action

Description:Assign a role to a user. Remember that your bot requires the `MANAGE_ROLES` permission. [See the docs here](https://discord.com/developers/docs/resources/guild#add-guild-member-role)
Version:0.0.7
Key:discord_bot-add-role

Discord Bot Overview

The Pipedream Discord app enables you to build event-driven workflows that interact with the Discord API. When you authorize the Pipedream app's access to your guilds, you can use Pipedream workflows to perform common Discord actions, or write your own code against the Discord API.

Action Code

import common from "../../common.mjs";

const { discord } = common.props;

export default {
  ...common,
  key: "discord_bot-add-role",
  name: "Add Role",
  description: "Assign a role to a user. Remember that your bot requires the `MANAGE_ROLES` permission. [See the docs here](https://discord.com/developers/docs/resources/guild#add-guild-member-role)",
  type: "action",
  version: "0.0.7",
  props: {
    ...common.props,
    userId: {
      propDefinition: [
        discord,
        "userId",
        ({ guildId }) => ({
          guildId,
        }),
      ],
    },
    roleId: {
      propDefinition: [
        discord,
        "roleId",
        ({
          guildId, userId,
        }) => ({
          guildId,
          userId,
          isAddRole: true,
        }),
      ],
    },
  },
  async run({ $ }) {
    const response = await this.discord.addGuildMemberRole({
      $,
      guildId: this.guildId,
      userId: this.userId,
      roleId: this.roleId,
    });

    if (!response) {
      return {
        id: this.roleId,
        success: true,
      };
    }

    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
Discord BotdiscordappThis component uses the Discord Bot app.
GuildguildIdstringSelect a value from the drop down menu.
UseruserIdstringSelect a value from the drop down menu.
RoleroleIdstringSelect a value from the drop down menu.

Action Authentication

Discord Bot uses API keys for authentication. When you connect your Discord Bot account, Pipedream securely stores the keys so you can easily authenticate to Discord Bot APIs in both code and no-code steps.

This app allows you to use the Discord API using your own Discord bot. If you don't want to use a custom bot, and you just need to use the Discord API, exit this screen and use the Discord app, instead.


If you want to use your own Discord bot, but haven't created one yet, see these instructions or watch this video. You'll need to add this bot to your server(s) to make successful API requests.

Once you've created your bot, you'll find the Bot token within the Bot section of your app. Enter that token below.

About Discord Bot

Use this app to interact with the Discord API using a bot in your account

More Ways to Connect Discord Bot + Eventbrite

Add Role with Discord Bot API on New Attendee Check-In (Instant) from Eventbrite API
Eventbrite + Discord Bot
 
Try it
Add Role with Discord Bot API on New Attendee Registered (Instant) from Eventbrite API
Eventbrite + Discord Bot
 
Try it
Add Role with Discord Bot API on New Event Ended from Eventbrite API
Eventbrite + Discord Bot
 
Try it
Add Role with Discord Bot API on New Event (Instant) from Eventbrite API
Eventbrite + Discord Bot
 
Try it
Create Channel Invite with Discord Bot API on New Attendee Check-In (Instant) from Eventbrite API
Eventbrite + Discord Bot
 
Try it
New Attendee Check-In (Instant) from the Eventbrite API

Emit new event when an attendee checks in to an event

 
Try it
New Attendee Registered (Instant) from the Eventbrite API

Emit new event when an attendee registers for an event

 
Try it
New Event (Instant) from the Eventbrite API

Emit new event when an event has been created

 
Try it
New Event Ended from the Eventbrite API

Emit new event when an event has ended

 
Try it
New Event Updated (Instant) from the Eventbrite API

Emit new event when an event has been updated

 
Try it
Create Event with the Eventbrite API

Create a new Eventbrite event. see docs here

 
Try it
Get Event Attendees with the Eventbrite API

Get event attendees for a specified event. see docs here

 
Try it
Get Event Details with the Eventbrite API

Get details for a specified event. see docs here

 
Try it
Get Event Summary with the Eventbrite API

Get event summary for a specified event. see docs here

 
Try it
Add Role with the Discord Bot API

Assign a role to a user. Remember that your bot requires the MANAGE_ROLES permission. See the docs here

 
Try it