Heap

Fuel product growth and team agility. Heap automatically captures web and mobile app behavioral data. Retroactively analyze behavioral data without writing code.

Go to site

Integrate the Heap API with the Discord Bot API

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

Get Current User Guilds

List the guilds the current bot user is a part of from the /users/@me/guilds API endpoint

 
Try it
Modify Guild

Modify a guild's settings. Requires the MANAGE_GUILD permission. Returns the updated guild object on success

 
Try it
List Guild Members

Returns a list of guild member objects that are members of the guild, from the /guilds/{guild.id}/members endpoint

 
Try it
Get Channel

Get a channel by ID. Returns a channel object.

 
Try it
Get User

Returns a user object for a given user ID from the /users/{user.id} endpoint

 
Try it

Connect Heap

// From the docs: https://docs.heap.io/reference#track-1
// "Requests are limited to 30 requests per 30 seconds per identity per app_id"
return await require("@pipedreamhq/platform").axios(this, {
  method: "POST",
  url: `https://heapanalytics.com/api/track`,
  headers: {
    "Content-Type": "application/json",
  },
  data: {
    app_id: auths.heap.app_id,
    identity: params.identity,
    event: params.event,
    timestamp: params.timestamp || (new Date()).toISOString(),
    properties: params.properties,
  }
})

Connect Discord Bot

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://discord.com/api/users/@me`,
  headers: {
    "Authorization": `Bot ${auths.discord_bot.bot_token}`,
  },
})