Discord

Send messages and manage channels and members with a Discord bot or webhook.

v1.0.1Source

Install

Send, edit, and react to messages, manage channels, members, and roles with a Discord bot, post with a webhook, and start a workflow on a slash command or a button click. Use it to build Discord bots, alerts, and moderation flows.

Discord@zerodot/discordInstall
  1. Open System, then Nodes.
  2. Find Discord and click Install.
  3. Use the new nodes at once. You do not restart.

How it works

Discord (discord.api) is an action node in the Discord package (@zerodot/discord): Send messages and manage channels and members with a Discord bot or webhook.

  • Message: send, edit, delete, get, list, react
  • Channel: list, get, create, delete
  • Member: get, list, add a role, remove a role, kick
  • Server: get
  • Webhook: execute, with a username, an avatar, and embeds

Messages can have embeds, components, allowed mentions, and up to 10 files from binary data of the input. Moderation operations can write a reason to the audit log. When Discord answers 429, the node waits retry_after and tries again.

To reply to an interaction from the trigger, use Webhook > Execute with a bot credential. Set Webhook ID to applicationId and Webhook Token to token of the trigger output.

Logins it can use

  • Discord bot (discord.bot): botToken from the Developer Portal, and an optional publicKey of the application. Without the public key, the trigger gets it from Discord. The token is secret.
  • Discord webhook (discord.webhook): webhookUrl of a channel webhook. It can only post messages. The address is secret.

Guides and related hubs