Introduction
Tags come with the ability to create powerful custom commands through the
usage of tag blocks. The basic block begins with a {
and ends with an }
.
More advanced blocks may contain after the block declaration ()
to specify
a parameter or a :
to specify a payload.
Block Syntax
{block(parameter):payload}
[arg]
~ Optional<arg>
~ Required
Usage
Add a tag using the following command -
Invoke the tag with your bot prefix and the tag’s name as if it were a command -
The bot will then respond with the stored tag content -
Default Variables
Tags come with built-in variable blocks you can access for more information about the invocation context. These are -
args
author
|user
target
|member
channel
guild
|server
You can see attributes available using these blocks in Default Variables.
Below is an example tag that returns info related to the tag author.
The args
block can be useful for customizing tags and works well with the
Command Block. Simple echo command that
validates if args were provided -
Here’s a tag that uses the default variable blocks as well as the If Block
-