Parser
These parser can only be used within specific functions, for example:
$sendMessage
, $channelSendMessage
or similar. This includes functions like $onlyIf
.
Embed Parser are handy to use once you know how, this section will be covering the basics about embed parsers.
Usage:
Name | Value | Color | |
---|---|---|---|
Primary | 1 | blurple | {button:Button:primary:customID:false} |
Secondary | 2 | grey | {button:Button:secondary:customID:false} |
Success | 3 | green | {button:Button:success:customID:false} |
Danger | 4 | red | {button:Button:danger:customID:false} |
Link | 5 | grey, navigates to a URL | {button:Button:link:https\\:aoi.js.org/invite:false} |
Emoji | - | primary button with emoji | {button:Button:primary:customID:false:emojiName or emojiID or emoji String} |
Select Menu Parser Usage:
Interaction Modal Parser Usage:
Below are simple examples of each parser and how to use them.
Embed with title, footer, image and field.
Two buttons each one in a different row.
Three buttons, one with emoji.
Single-Select Menu with two options
Multi-Select Menu with three options and a maximum of 2 selectable options
User-Select Menu
Modal with two fields one being normal sized and the other being bigger.