Skip to main content

Variables

All variables available in raze for embed scripting and message templates.
These variables are available throughout raze and can be used in any command context which contains a message or embed code parameter (e.g. welcome, leave, level-up, invoke).

How to use variables

Variables let you inject dynamic text into your messages. For example, if you want a welcome message to ping the user and mention the server name, you can write:
When a user named “wanderer” joins “raze”, it outputs:
Welcome to raze, @wanderer!
You can also use these variables in your Embed Builder or anywhere else that supports scripting. Just wrap the variable name in curly braces {}.
All IST times are Asia/Kolkata. All UTC times are UTC+0.
Available in welcome message templates when invite tracking is enabled.
Available in level-up message templates (levelup set).
Available in streaks message templates, and usable anywhere embed scripting is supported (customcommand, invoke, etc.). Reads live from the member’s current streak progress.Prefix with target. (e.g. {target.streak.current}) to reference another member instead of the message author, where supported.
Available in lf embed set templates only. All standard {user.*} and {guild.*} variables also apply.TrackArtistAlbumAccount
Available in moderation message templates (jail, DM punishments, invoke messages, etc.).
Available in affiliate message templates.
Available in boost message templates.
Wrap any variable inside a transform function to modify its value. Works anywhere variables are supported.Examples
Transforms resolve the variable first, then apply the function — so {lower(track.name)} outputs the track title in lowercase, not the literal text track.name.