Home Commands Terms & Privacy Add to Discord

TagScript Documentation

Create powerful, dynamic custom commands with Axion's TagScript engine

What is TagScript?

TagScript is the scripting language Axion uses for custom commands. It gives you variables, conditionals, math, randomness, embeds, reactions, and fine-grained control over how the bot responds.

Two command types β€” one language

Axion has two kinds of custom commands, and most TagScript blocks work in both. A small number of blocks are exclusive to one type:

🌐 Global

Engine Blocks

Built into the TagScriptEngine. Available everywhere β€” in both Tags and SlashTags.

  • Math, logic, randomness
  • Text manipulation
  • Embed, require, cooldown
  • Command & redirect
🏷️ Tags

Classic Tags

Triggered with a prefix ([p]tagname args…). Supports argument parsing and invoking-message actions.

  • {delete} β€” delete invoking message
  • {silent} β€” suppress response
  • {reactu} β€” react to invoking message
  • {allowedmentions} with override
⚑ SlashTags

Slash Tags

Registered as /commandname. Supports ephemeral replies, replying to interactions, and comments.

  • {hide} β€” ephemeral response
  • {reply} β€” reply to interaction
  • {#} / {comment} β€” no-op comment
  • {allowedmentions}

Quick availability reference

Block category Tags Slash
Tags
Math, variables, logic, text βœ“ βœ“
Embed, require, blacklist, cooldown βœ“ βœ“
Redirect, command, override βœ“ βœ“
React to response ({react}) βœ“ βœ“
AllowedMentions ({allowedmentions}) βœ“ βœ“
Delete invoking message ({delete}) βœ“ βœ—
Silent response ({silent}) βœ“ βœ—
React to invocation ({reactu}) βœ“ βœ—
Ephemeral response ({hide}) βœ— βœ“
Reply to interaction ({reply}) βœ— βœ“
Comment blocks ({#}, {//}) βœ— βœ“

Quick example

{if({args}==):Hello {user(name)}!|You said: {args}}

The same conditional logic works in both Tags and SlashTags. Only the action blocks differ.

🧱

Blocks

All utility and computation blocks β€” math, logic, text, randomness, and more.

Global
βš™οΈ

Parsing Blocks

Action blocks that control how the response is sent β€” embeds, reactions, delete, hide, reply, and more.

Global Tags SlashTags
πŸ“¦

Variables

Access Discord data β€” user, channel, server, args, and target β€” inside your tag content.

Global Tags SlashTags
πŸ’‘

Examples

Ready-to-use templates for Tags and SlashTags to get you started quickly.

Tags SlashTags
πŸ”§

Configuration

How to create, edit, and manage both Tags and SlashTags in your server.

Tags SlashTags