Parser
Table of Contents
ExtraOptions/Options Parser Functions
These parser can only be used within specific functions, for example:
$sendMessage
, $channelSendMessage
or similar. This includes functions like $onlyIf
.
Embed Parser
Embed Parser are handy to use once you know how, this section will be covering the basics about embed parsers.
Embed Parser Functions
Components Parser
Button Parser
Usage:
Button Types
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
Select Menu Parser Usage:
Interaction Modal Parser
Interaction Modal Parser Usage:
Parsers Examples
Below are simple examples of each parser and how to use them.
Embed Parser
Embed with title, footer, image and field.
Components Parser
Button Parser
Two buttons each one in a different row.
Three buttons, one with emoji.
Select Menu Parser
Single-Select Menu with two options
Multi-Select Menu with three options and a maximum of 2 selectable options
User-Select Menu
Interaction Modal Parser
Modal with two fields one being normal sized and the other being bigger.