FaunaDB

The database built for serverless, featuring native GraphQL

Go to site

Integrate the FaunaDB API with the Discord Webhook API

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

Send Message to Channel

Send a message to the channel tied to your incoming webhook. At least one of message OR embeds is required.

 
Try it
Read From FaunaDB Collection

Reads all documents from given FaunaDB collection

 
Try it

Connect FaunaDB

const faunadb = require('faunadb')
const q = faunadb.query

const client = new faunadb.Client({ secret: auths.faunadb.secret })

// Lists collections in the database tied to your secret key
const collectionsPaginator = await client.paginate(q.Collections())

this.collections = []
await collectionsPaginator.each(page => {
  for (const collection of page) {
    this.collections.push(collection.id)
  }
})

Connect Discord Webhook

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