Message Curl Format
Some functions accept message content argument like $sendMessage, $editMessage... but sometimes you want to send embed instead of plain text
You can provide those details using message curl format
Usage: {info:value}
Example
Sending a embed with title Hello and description World
List:
| Curl Format | Description | Example (click to see output) |
|---|---|---|
| {content:text} | to set message content | {content:Message content} |
| {title:text} | adding a title | {title:My name is $username} |
| {url:link} | adding a url for the title | {url:https://discord.com} |
| {footer:text:url} | adding a footer | {footer:You see my small profile?:$authorAvatar} |
| {description:text} | adding a description | {description:Do you know that this month is $month?} |
| {desc:text} | alias to {description} | {desc:Hello World, do you see this description?} |
| {color:input} | adding a color of embed, read this page to know the accepted input | {color:RED} or {color:#ff0000} |
| {author:text:image url:link url} | adding author | {author:$username:$authorAvatar:$authorAvatar} |
| {thumbnail:url} | adding thumbnail | {thumbnail:$authorAvatar} |
| {field:name:value:inline} | adding a field | {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} | attaching a timestamp | {timestamp} or {timestamp:1680871946176} |
| {image:url} | displaying image | {image:$authorAvatar} |
| {reactions:emoji,emoji2,...} | add reactions after posting the message | {reactions: 👍, 👎} |
| {reaction:emoji,emoji2,...} | alias for {reactions} | {reaction: 👍, 👎} |
| {suppress:yes/no} | suppress the embed of the message | {suppress:yes} |
| {delete:time(s/m/h...)} | delete the message after certain time after posting it | {delete:5s} |
| {button:Name:style:emoji:button id:new line(yes/no):disabled(yes/no)} | add a button to the message | {button:Green button:green::id1} |
| {edit:Time in ms:New Content} | edit the message after certain time | {edit:5s:My edited content} |
| {file:Name:Content} | adding attachment file from text | No example |
| {attachment:Name:URL} | adding attachment file from url | No example |
| {deletecommand} | to delete the original command message immediately | No example |
| {deletecommand:time} | to delete the original command message after time like 5s | {deletecommand:5s} |
| {reply:message id} | to reply to a message | No example |
| {reply_mention:yes/no} | to ping user on reply or not | No example |
| {interaction} | to send message through an interaction | No example |
| {ephemeral:yes/no} | to send message privately or not, useful only if {interaction} enabled | No example |
| {private:yes/no} | alias as ephemeral | No example |
| {stickers:Sticker 1 ID:Sticker 2 ID:Sticker 3 ID} | to send stickers | No example |
| {pin} | to pin the sent message | No example |
| {silent} | send message in silent mode, will not send push notification 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 value contains characters like : (colon), [ , ; , ]
you have to escape it to avoid unexpected results by putting \ before it
for example \:
If your original format is: {author:I love;World} Correct is: {author:I love\;World}