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
{info:value}
Usage: Example
Sending a embed with title Hello
and description World
List:
Curl Format | Description | Example (click to see output) |
---|---|---|
{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:hex} | adding a color of embed | {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} |
{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} |
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}