Workflows
Blocks
Integrations
Discord

Discord

The Discord block lets your workflow talk to a Discord server through a bot — send messages and rich embeds, manage channels and threads, assign roles, moderate members, and post through webhooks.

Community Automation: Connect a Discord bot once, then send alerts, welcome new members, create channels, and run moderation actions automatically from any workflow.

Key Features

  • Messaging: Send, edit, and delete messages, post rich embeds, and add reactions
  • Channel Management: Create, update, and delete channels, and start threads
  • Roles & Members: Add or remove roles, list members, kick or ban users
  • Server Tools: Create invites, read server info, and post via incoming webhooks
  • 21 Operations: Everything runs through your own Discord bot token

Operations

Messages

OperationDescription
Send MessagePost a text message to a channel
Send EmbedPost a rich embed (title, description, color, URL) — or pass full embed JSON
Get MessageFetch a single message by ID
List MessagesFetch recent messages from a channel (default limit 50)
Edit MessageChange the content or embeds of a bot message
Delete MessageRemove a message
Add ReactionReact to a message with an emoji
Send WebhookPost a message through a Discord incoming webhook URL (no bot needed for this one)

Channels & Threads

OperationDescription
Get ChannelFetch details of one channel
List ChannelsList all channels in the server
Create ChannelCreate a text (0), voice (2), or category (4) channel
Update ChannelRename a channel or change its topic
Delete ChannelRemove a channel
Create ThreadStart a thread in a channel, or from a specific message

Roles, Members & Server

OperationDescription
Add RoleGive a role to a member
Remove RoleTake a role away from a member
List MembersList server members (default limit 100)
Kick MemberRemove a member from the server (with optional audit-log reason)
Ban MemberBan a member, optionally deleting their recent messages (0–604800 seconds)
Create InviteGenerate an invite link with max age, max uses, and temporary membership options
Get Guild InfoFetch information about the server

Configuration

ParameterTypeRequiredDescription
CredentialsSelectYesYour saved Discord bot token
ActionSelectYesOne of the 21 operations above
Server ID (guildId)TextFor server opsThe Discord server ID
Channel IDTextFor channel/message opsThe target channel
Message IDTextFor message opsThe target message
User ID / Role IDTextFor member/role opsThe target member or role
ContentTextFor send/editThe message text — supports {{variables}}
Embed fieldsTextFor Send EmbedTitle, description, color (#RRGGBB or decimal), URL — or a JSON array of embed objects
Webhook URLTextFor Send WebhookThe Discord incoming webhook URL

Turn on Developer Mode in Discord (User Settings → Advanced) to copy server, channel, message, user, and role IDs with a right-click.


Connecting your Discord bot

  1. Go to the Discord Developer Portal (opens in a new tab) and click New Application.
  2. Open the Bot tab and click Reset Token. Copy the bot token — this is the only credential Indite needs.
  3. Under OAuth2 → URL Generator, select the bot scope and the permissions your workflow uses (for example Send Messages, Manage Channels, Manage Roles, Kick Members, Ban Members).
  4. Open the generated URL and invite the bot to your server.
  5. In Indite, add the Discord block, click Connect new, and paste the Bot Token.
⚠️

The bot can only act where it has permission. If an operation fails with a permission error, check the bot's role permissions in your server settings — and note that a bot cannot manage roles or members ranked above its own highest role.


Output

The block returns the raw Discord API response. Reference fields in later blocks with {{<blockId>.<field>}}.

OperationOutput
Send/Get/Edit Message, Send EmbedThe full message object (id, content, channel_id, author, ...)
List Messages / List Channels / List MembersAn array of objects
Create Channel / Create Thread / Create Invite / Get Guild InfoThe created or fetched object
Add/Remove Role, Delete Message, Kick/Ban Member, Add Reaction, Send WebhookA simple confirmation flag such as { "added": true }, { "deleted": true }, or { "sent": true }

Example: deployment alerts

  1. Webhook Trigger — your CI system calls the workflow when a deploy finishes.
  2. Condition — check whether the deploy succeeded or failed.
  3. Discord → Send Embed — post to the #deployments channel with a green embed on success or a red one (embedColor: #ff0000) on failure, using {{trigger.data.version}} in the title.
Indite Documentation v1.7.1
PrivacyTermsSupport