Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
Creates a render on a template in Templated. See the documentation
Retrieves a single template object referenced by its unique ID. See the documentation
List all templates of a user on Templated. See the documentation
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 Templated API allows users to generate custom documents based on predefined templates. It's a powerful tool when you need to create consistent documents or reports with variable data. In Pipedream, you can seamlessly integrate Templated with other services to automate document creation. Combine data from various sources, trigger document generation, and carry out follow-up actions like emailing the document or saving it to cloud storage.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
templated: {
type: "app",
app: "templated",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.templated.io/v1/templates`,
headers: {
Authorization: `Bearer ${this.templated.$auth.api_key}`,
},
})
},
})