Discord
Discord is a real-time communication platform that enables users to connect via text, voice, and video within communities called servers (guilds). It is widely used for social networking, gaming, and business collaboration, offering features like customizable channels, roles, and bot integrations. With Discord, users can streamline conversations, automate tasks, and foster engagement within their communities.
How to Connect Discord to ZBrain Flow?
To integrate Discord with ZBrain Flow, follow these steps:
Step 1: Create a Connection
Enter a Connection Name – Choose a name to identify your Discord connection.
Enter the Bot Token – To obtain a Discord Bot Token, follow these steps:
Go to the Discord Developer Portal.
Click on an existing application or create a new one.
Navigate to the Bot tab.
Click ‘Reset Token’ to generate a new token.
Copy and paste the token into the Bot Token field.
Click ‘Save’ – Your Discord connection is now successfully established in ZBrain Flow.
Triggers Available in ZBrain Flow
New Message Posted
This trigger activates when a new message is posted in a specified Discord channel.
How to Set Up the Trigger?
Select a Connection – Choose an existing Discord connection or create a new one by following the connection setup steps.
Enter the Channel ID – The Channel ID can be found in the channel’s URL.
Save and Activate – Once configured, the trigger will monitor for new messages in the selected channel and initiate the associated workflow.
Actions Available in ZBrain Flow
Below are the available Discord actions that can be automated using ZBrain Flow.
1. Send Message with Bot
Automate sending messages from your Discord bot to a specific channel or thread.
Configuration Steps:
Select the Channel – Choose a channel from the list of available Discord channels.
Enter the Message – Input the text message to be sent.
Add Attachments (Optional) – Upload files to send along with the message.
2. Send Message via Webhook
Send a message using a Discord Webhook URL instead of a bot.
Configuration Steps:
Enter the Webhook URL – Provide the Webhook URL from your Discord server.
Enter Name – Define the display name for the webhook sender.
Enter Message – Input the message text.
Enter Avatar URL (Optional) – Set a custom avatar for the webhook message.
Enter Embeds (Optional) – Structure the message with embeds.
Enable Text-to-Speech (TTS) – Toggle ON/OFF to make the bot read the message aloud.
3. Request Approval in a Channel
Send a message requesting approval from users and wait for a response.
Configuration Steps:
Enter the Bot Token.
Enter the Approval Request Message – Type the message requesting approval.
Select the Channel – Choose where to send the request.
4. Add Role to a Member
Assign a specific role to a member in a Discord server (guild).
Configuration Steps:
Enter the Bot Token.
Enter the Guild ID – Select the server where the user is located.
Enter the User ID – Provide the Discord user’s ID.
Select the Role – Choose the role to assign.
5. Remove Role from a Member
Remove a previously assigned role from a user.
Configuration Steps:
Enter the Bot Token.
Enter the Guild ID.
Enter the User ID.
Select the role to remove.
6. Remove Member from Guild
Remove a member from a Discord server (guild).
Configuration Steps:
Enter the Bot Token.
Enter the Guild ID.
Input the User ID.
7. List Guild Members
Retrieve a list of all members in a specific Discord guild.
Configuration Steps:
Enter the Bot Token.
Enter the Guild ID.
Search for a member and select from the list.
8. Rename a Channel
Change the name of a text or voice channel.
Configuration Steps:
Enter the Bot Token.
Select the channel.
Enter the new name for the channel.
9. Create a New Channel
Create a new text or voice channel in a server.
Configuration Steps:
Enter the Bot Token.
Select the Guild ID.
Enter the channel name.
10. Delete a Channel
Permanently remove a text or voice channel from Discord.
Configuration Steps:
Enter the Bot Token.
Select the channel to be deleted.
11. Find a Channel
Locate a channel by name within a specific guild (server).
Configuration Steps:
Enter the Bot Token.
Select the Guild ID.
Enter the channel name.
12. Remove Ban from a User
Lift a ban on a previously banned Discord user.
Configuration Steps:
Enter the Bot Token.
Select the Guild ID.
Enter the User ID.
Enter the reason for unbanning.
13. Create a Guild Role
Create a new custom role in a Discord server.
Configuration Steps:
Enter the Bot Token.
Select the Guild ID.
Enter the role name.
Enable/disable ‘Display Separated’ – Show the role separately in the sidebar.
Enable/disable ‘Mentionable’ – Allow users to mention this role.
Enter the reason for creating the role.
14. Delete a Guild Role
Remove a role from a Discord server.
Configuration Steps:
Enter the Bot Token.
Select the Guild ID.
Enter the role name.
Enter the reason for deleting the role.
15. Ban a Guild Member
Ban a user from a Discord server.
Configuration Steps:
Enter the Bot Token.
Select the Guild ID.
Enter the User ID.
Enter the reason for banning.
16. Custom API Call
Send a custom request to a Discord API endpoint.
Configuration Steps:
Enter the Bot Token.
Enter the API URL – Provide the full or relative API URL.
Select the HTTP Method:
GET (Retrieve data)
POST (Send data)
PATCH (Modify data)
PUT (Update or replace data)
DELETE (Remove data)
HEAD (Fetch headers only)
Add Headers – Define request headers.
Add Query Parameters – Define query parameters.
Enter JSON Body – Provide request data in JSON format.
Enable/Disable ‘No Error on Failure’ – Ignore errors if the API call fails.
Enter Timeout – Define timeout in seconds.
Note: Click 'f' to insert dynamic values wherever needed.
Last updated