🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.

Discord Bot

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

Go to site

Integrate the Discord Bot API with the Go API

Setup the Discord Bot API trigger to run a workflow which integrates with the Go API. Pipedream's integration platform allows you to integrate Discord Bot and Go remarkably fast. Free for developers.

Connect Discord Bot

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    discord_bot: {
      type: "app",
      app: "discord_bot",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://discord.com/api/users/@me`,
      headers: {
        "Authorization": `Bot ${this.discord_bot.$auth.bot_token}`,
      },
    })
  },
})

Connect Go

package main

import (
	"fmt"

	pd "github.com/PipedreamHQ/pipedream-go"
)

func main() {
	// Access previous step data using pd.Steps
	fmt.Println(pd.Steps)

	// Export data using pd.Export
	data := make(map[string]interface{})
	data["name"] = "Luke"
	pd.Export("data", data)
}