Use this app to send messages to a channel using Discord's incoming webhooks
Add or update a single record in your Pipedream Data Store.
Send a simple or structured message (using embeds) to a Discord channel
Add or update multiple records to your Pipedream Data Store.
With Discord's Webhook API, you can create applications that send messages to
Discord channels automatically. For example, you could create a bot that sends
a message to a channel every time a new blog post is published, or a message to
a channel when someone joins your Discord server.
Here are some ideas for what you could build using the Discord Webhook API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
discord_webhook: {
type: "app",
app: "discord_webhook",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://discord.com/api/users/@me`,
headers: {
Authorization: `Bearer ${this.discord_webhook.$auth.oauth_access_token}`,
},
})
},
})
With the Data Stores API, you can build applications that:
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})