Discord Bot

Use this app to interact with the Discord API using a bot in your account

Go to site

Integrate the Discord Bot API with the MySQL API

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

Popular Ways to Connect Discord Bot with MySQL

1
-
6
of
7
integrations by popularity

Popular Discord Bot and MySQL Triggers

1
-
6
of
6
triggers by popularity

Popular Discord Bot and MySQL Actions

1
-
6
of
13
actions by popularity

Connect Discord Bot

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

Connect MySQL

const mysql = require('mysql2/promise');

const { host, port, username, password, database } = auths.mysql

const connection = await mysql.createConnection({
  host,
  port,
  user: username,
  password,
  database,
});

const [rows, fields] = await connection.execute('SELECT NOW()');
console.log(rows)