Message Curl Format
Some functions, like $sendMessage and $editMessage, accept message content as an argument. While you can send plain text, you might want to send a more visually appealing embed instead.
Message Curl Format allows you to define embed details easily.
Usage: {info:value}
This format uses curly braces {} to define different aspects of your message. The info part specifies what you want to set (like the title or description), and the value is what you want to set it to.
Example
Here's how to send an embed with the title "Hello" and the description "World":
Available Curl Formats:
| Curl Format | Description | Example (click to see output) |
|---|---|---|
{content:text} | to set message content | {content:Message content} |
{title:text} | Adds a title to the embed. | {title:My name is $username} |
{url:link} | Makes the title a clickable link. | {url:https://discord.com} |
{footer:text:url} | Adds a footer with optional image. The URL is for the footer icon. | {footer:You see my small profile?:$authorAvatar} |
{description:text} | Sets the main text content of the embed. | {description:Do you know that this month is $month?} |
{desc:text} | An alias (shorter version) of {description:text}. | {desc:Hello World, do you see this description?} |
{color:hex} | Sets the color of the embed's side border. Use a hex code (like #ff0000) or a color name (like RED). | {color:RED} or {color:#ff0000} |
{author:text:image url:link url} | Adds an author section to the embed. You can specify the author's name, an image URL for their avatar, and a URL that the author's name links to. | {author:$username:$authorAvatar:$authorAvatar} |
{thumbnail:url} | Adds a small image in the top right corner of the embed. | {thumbnail:$authorAvatar} |
{field:name:value:inline} | Adds a field (a small section with a title and value). Set inline to true or false (or yes/no) to make the field appear next to other inline fields. | {field:My name:$username} |
{removefields:field number 1:field number 2:...} | remove field(s), leave input empty to remove all fields | {removefields:1:2} |
{timestamp:ms} | Adds a timestamp to the embed. If you don't provide a value, it uses the current time. You can also provide a specific timestamp in milliseconds. | {timestamp} or {timestamp:1680871946176} |
{image:url} | Adds a large image at the bottom of the embed. | {image:$authorAvatar} |
{reactions:emoji,emoji2,...} | Adds reactions to the message after it's sent. Separate multiple emojis with commas. Use the standard Discord emoji format (e.g., :+1:). | {reactions: 👍, 👎} |
{reaction:emoji,emoji2,...} | Alias for {reactions}. | {reaction: 👍, 👎} |
{suppress:yes/no} | Suppresses the embed for URLs in the message, preventing link previews. | {suppress:yes} |
{delete:time(s/m/h...)} | Deletes the message automatically after a certain amount of time. Use s for seconds, m for minutes, h for hours, etc. | {delete:5s} |
{button:Name:style:emoji:button id:new line(yes/no):disabled(yes/no)} | Adds a button to the message. style can be blue, green, red, grey or a url, emoji is optional, new line indicates if the button should be in a new line, disabled to disable the button | {button:Green button:green::id1} |
{edit:Time in ms:New Content} | Edits the message after a specified time (in milliseconds) with new content. | {edit:5s:My edited content} |
{file:Name:Content} | Adds an attachment file to the message, using the provided text as the file content. | No example |
{attachment:Name:URL} | Adds an attachment file to the message, fetching the file from the given URL. | No example |
{deletecommand} | Deletes the original command message immediately after the new message is sent. | No example |
{deletecommand:time} | Deletes the original command message after a specified time (e.g., 5s). | {deletecommand:5s} |
{reply:message id} | Replies to a specific message using its ID. | No example |
{reply_mention:yes/no} | Determines whether the user being replied to should be mentioned (pinged). | No example |
{interaction} | Sends the message through an interaction (e.g., a slash command). This is often required for ephemeral messages. | No example |
{ephemeral:yes/no} | Sends the message privately to the user who triggered the interaction. Only works if {interaction} is enabled. | No example |
{private:yes/no} | Alias for {ephemeral:yes/no}. | No example |
{stickers:Sticker 1 ID:Sticker 2 ID:Sticker 3 ID} | Sends stickers using their IDs. | No example |
{pin} | Pins the sent message to the channel. | No example |
{silent} | Sends the message in silent mode, which doesn't send push notifications to Discord users. | {silent} |
{removebutton:id} | remove a button with id, empty id will remove all buttons | {removebutton:mybtnid} |
{removemenu:id} | remove a menu with id, empty id will remove all buttons | {removemenu:mybtnid} |
{poll:data} | add a new poll to the message, learn more about data here | see example here |
{container:data} | add container for discord v2 components. | see example here |
Note
Sometimes values contain special characters like colons (:), square brackets ([ and ]), semicolons (:), or backslashes (\). You need to escape these characters by placing a backslash (\) before them to prevent unexpected results. For example, to use a colon in your text, you would write \:.
If your original format is: {author:I love:World} Correct is: {author:I love\:World}