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} |
Premium | 6 | premium button that allows purchases (only usable if you have monitarization enabled & converts automatically to userβs currency!) | {button:Button:premium:skuID:false} |
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.