Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
Scrape OpenGraph data from a list of URLs at once, to process multiple websites simultaneously. See the docs here
Extract specific OpenGraph properties from a specified URL, such as title, image, or description. See the docs here
Retrieve OpenGraph data from a specified URL using the OpenGraph.io API. See the docs here
Send a simple or structured message (using embeds) to a Discord channel
The Discord API interacts seamlessly with Pipedream, empowering you to craft customized automations and workflows for your Discord server. With this powerful integration, you can automate tasks like message posting, user management, and notifications, based on a myriad of triggers and actions from different apps. These automations can enhance the Discord experience for community moderators and members, by synchronizing with external tools, organizing community engagement, and streamlining notifications.
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`,
},
})
},
})
The OpenGraph.io API enables you to fetch Open Graph data from websites, which is useful for previewing content like images, titles, and descriptions the way social platforms do. Integrating OpenGraph.io with Pipedream allows you to automate the retrieval of this data in response to various triggers and to use it in workflows that involve other apps and services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
opengraph_io: {
type: "app",
app: "opengraph_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://opengraph.io/api/1.1/site/https%3A%2F%2Fpipedream.com`,
params: {
app_id: `${this.opengraph_io.$auth.api_key}`,
},
})
},
})