Blocks
Blocks are the steps of a flow: send messages, manage members, store data, call APIs and more.
Advanced Messages
Text component.
Holds text, thumbnails, galleries, and other content components.
Holds text alongside an accessory button or thumbnail.
Holds up to 5 buttons or a single select component.
Adds vertical padding between message components, with an optional divider line.
Create a button for users to click on. Triggers with a new flow and Custom ID.
Top-level container for 1-10 media items.
Single media item in a gallery or a thumbnail accessory.
Option item for a String Select component.
String select menu for advanced messages and modals.
User select menu for advanced messages and modals.
Role select menu for advanced messages and modals.
Mentionable select menu for advanced messages and modals.
Channel select menu for advanced messages and modals.
Auto Moderation
Get details of an auto moderation rule.
List all auto moderation rules for a server.
Create an auto moderation rule.
Modify an existing auto moderation rule.
Delete an auto moderation rule.
Channels
Retrieve a Discord channel's information by its ID.
Create a text/voice/stage/etc channel or channel category in a server.
Modify a channel's information by its ID.
Move a channel to a new category.
Move a member from one voice channel to another.
Retrieve a Discord server's channels by its ID.
Delete a Discord channel by its ID.
Trigger a typing indicator in a channel.
Set allowed and denied permission overrides for a user or role in a channel. Supports setting both allow and deny in one block, and can either replace existing overrides or update them.
Delete a channel permission overwrite for a user or role.
Databases
Find a single row from a database matching your query. Returns the first matching row.
Find multiple rows from a database and iterate over each one.
Create a new row in a database with the specified values.
Duplicate an existing row in a database by its ID.
Update an existing row in a database with new values.
Clear selected columns from a database row. Does nothing if the row does not exist.
Find rows matching a query and clear selected columns from all of them.
Find rows matching a query and update them all with the specified values.
Delete rows matching a query and return how many were deleted.
Delete a row from a database by its ID.
Emojis
Interactions
Send a text response to an interaction (slash command, button, etc.).
Acknowledge an interaction and show a loading state. Use this when your response will take a while.
Send a Components v2 response to an interaction (slash command, button, etc.).
Send an embed response to an interaction.
Get message, channel, and server data from an interaction response.
Show a modal dialog in response to an interaction.
Invites
Create an invite for a channel.
Retrieve an invite's information by its code.
Retrieve a list of invites for a channel.
Retrieve a list of invites for a server.
Delete an invite by its code.
Logic
Run the nested blocks a fixed number of times.
Repeat blocks while a condition is true.
Compare two values and run different blocks based on the result.
Run different blocks based on grouped comparisons.
Compare two values and output one of two values based on the result.
Organize blocks into a folder. Creates a variable scope.
Stop the current loop and continue with the blocks after it.
Skip the rest of this loop iteration and move to the next one.
Stop the entire flow immediately. No further blocks will run.
Call a custom block and use its returned outputs.
Return outputs from the current custom block and stop executing it.
Math
Perform addition, subtraction, multiplication, division, modulo and exponent operations.
Perform addition, subtraction, multiplication, division, modulo and exponent operations with floating point numbers.
Round a number using a chosen method (round, floor, ceil, truncate) to a specified number of digits.
Get the absolute value of a number.
Get the square root (sqrt) of a number.
Get the logarithm of a number with a specified base.
Calculate the factorial of a number.
Generate a random number using specified minimum and maximum values.
Generate a random passphrase with a specified number of words.
Check if a number is in a specified range.
Check if a number is close to another number within a specified tolerance.
Check if a value is a number.
Convert a hexadecimal number to an integer.
Convert an integer to a hexadecimal number.
Add or subtract a percentage to/from an integer.
Add or subtract a percentage to/from a floating point number.
Messages
Send or Edit a text-only message
Send a text-to-speech message.
Send a Components v2 message.
Send or edit an embed message.
Fetch a single message by its ID from a channel.
Fetch recent messages from a channel and iterate over them.
Search a server's messages and iterate over the matched messages.
Fetch pinned messages from a channel and iterate over them.
Forward a message into another channel.
Delete a message by its ID from a channel.
Pin a message in a channel.
Unpin a message in a channel.
Publish an announcement message to all channels following the announcement channel.
Suppresses link preview embeds on a message by setting the SUPPRESS_EMBEDS flag.
Bulk-delete messages from a channel.
A single answer option for a poll.
Send a poll message in a channel.
Immediately end a poll on a message.
Fetch users who voted for a specific poll answer and iterate over them.
Modals
Network
Escape a string to be used as a JSON field.
Retrieve a value from a JSON string.
Indent a JSON string for readability.
Generate a HTTP form body from a list of key-value pairs.
Send an HTTP request and return the response.
Respond to an incoming webhook request with a custom status code and response body.
Reactions
Get all reactions from a message.
Get number of reactions from a message.
Add a reaction to a message.
Remove your reaction from a message.
Remove all reactions from a message.
Remove a user's reaction from a message.
Regex
Check if a string matches a regular expression.
Find matches of a regular expression in a string.
Iterate over matches of a regular expression in a string.
Replace all matches of a regular expression in a string.
Roles
Get all roles in the specified server.
Get a role in the specified server.
Update a role in the specified server.
Create a role in the specified server.
Delete a role in the specified server.
Get the @everyone role in the specified server.
Scheduled Event
Create a scheduled event.
Get a scheduled event.
List scheduled events for a server.
Modify a scheduled event.
Delete a scheduled event.
Servers
Retrieve a Discord server's information by its ID.
Retrieve a list of Discord servers the bot is a member of.
Retrieve a server's vanity invite URL.
Update a Discord server's information by its ID.
Leave a Discord server by its ID.
Retrieve audit log entries for a server.
Strings
Get the length of a string in characters and in bytes.
Split a string into a list of strings with a delimiter.
Iterate over a string separated by a delimiter.
Count the number of times a substring appears in a string.
Replace a substring with a new substring within a string.
Convert a string to lowercase.
Convert a string to uppercase.
Remove a prefix from a string.
Remove a suffix from a string.
Truncate a string to a certain length.
Encode a string to Base64.
Decode a Base64 string.
Format a number with commas.
Generate a UUIDv4 (fully-random).
Generate a UUIDv7 (time-based).
Parse a color string (name or hex code) into a hex string.
Encode a string to be used as a URL parameter.
Decode a string used as a URL parameter.
Apply a one-way hash to a string using bcrypt.
Compare a string to a bcrypt hash.
Verify a message against an HMAC signature.
Generate an MD5 hash of a string.
Sort lines of text by the number at the beginning or end of each line.
Split a string into groups of a certain number of characters.
Iterate over a string by groups of a certain number of characters.
Scramble the order of characters in a string.
Generate a random string of a specified length using a chosen character set.
Repeat a string a specified number of times.
Reverse the characters of a string.
Reorder the elements in a comma separated list.
Compare two comma separated lists and find items exclusive to each list and items common to both.
Remap or replace values in a string using a set of original-to-replacement pairs.
Get the creation time of a UUIDv7.
Threads
Start a thread from a message.
Start a thread from a channel.
Create a thread in a forum channel.
Get the tags of a forum channel.
Update the tags of a forum thread.
Join a thread.
Leave a thread.
Add a member to a thread.
Remove a member from a thread.
Archive a thread.
Unarchive a thread.
Lock a thread.
Unlock a thread.
Pin a thread.
Unpin a thread.
Time
Get the current UTC date and time in various formats.
Parse a Unix timestamp into a human-readable date and time.
Convert a Discord snowflake ID into a creation date and time.
Pause the flow for a specified duration.
Parse a user-provided relative time string into a Unix timestamp.
Add or subtract time from a Unix timestamp.
Get a specific time in the future or past in a variety of formats.
Truncate a Unix timestamp to a given period.
Parse a month name into a number.
Parse a date and time into a Unix timestamp with a variety of parsing options.
Format a Unix timestamp into a standardized date and time string.
Generate a Discord timestamp timecode from a Unix time.
Users
Retrieve a Discord user's information by their ID.
Create a DM channel with a user.
Retrieve a Discord server member information by their ID.
Retrieve the position of the highest role of a member in a server.
Retrieve members of a Discord server.
Kick a member from a server.
Ban a member from a server.
Unban a member from a server.
Retrieve a list of banned users in a server.
Timeout a member from a server.
Assign a role to a user.
Remove a role from a user.
Change a member's nickname in a server.
Utilities
Log an error to the errors dashboard.
Retrieve details of a logged error.
Measure current patency to the Discord API.
Update the bot's presence and status text.
Get the number of servers the bot is in.
Loop over a customized range of numbers.
Check if a permission exists in a bitfield.
Check if a member or role has specific permissions.
Redact a secret (e.g. example -> e*****e).
Get cached details of the current branch's bot user.
Generate a unique Snowflake-like ID.
Set a local variable to a new value.
Append text to a local variable on a new line.
Add a note or comment to your flow. This block does nothing when run.
Increment or decrement a numeric local variable by a value.
Webhooks
Create a webhook in a channel.
Get all webhooks in a channel.
Get a webhook by its ID.
Get all webhooks in a server.
Delete a webhook.
Modify a webhook.
Send a message with a webhook.