Helper functions and functional utilities to use within your Pipedream workflows
Accepts a base64-encoded string, returns a decoded UTF-8 string
Get the difference, intersection, union, or symetric difference of two arrays/sets.
Converts an HTML string to the Slack mrkdwn format using
Accepts a JavaScript object, returns that object converted to a JSON string
Pipedream provides a set of helper functions that make it easy to manipulate
and work with data in your workflow. You can use these helper functions to:
Here are some examples of what you can build using the Helper Functions API:
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.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
discord: {
type: "app",
app: "discord",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://discord.com/api/users/@me`,
headers: {
Authorization: `Bearer ${this.discord.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})