Variables
Variables are important to use with BotWiz as it adds customisation and functionality to your bot.
In the following subpages you will learn about:
Interaction Variables
Custom variables
Unique variables
Function Variables
Advanced Variables
Event Variables
Text
Sets the variable to store a string, allowing it to accept any value, from numbers, letters or symbols.
Number
Sets the variable to store a number, allowing only numbers to be stored. This also allows the variable to be used in the Calculate variable block.
Array
Sets the variable to store an array / list of values, this allows you to store multiple values in separate positions. (Starting at 0)
User
Sets the variable to store values for a specific user.
Channel
Sets the variable to work in a specific channel, this allows you to store data for a specific channel, rather than for the entire server.
Object
An object variable is a type of variable used to store and manipulate complex data structures.
Custom Variables
To create a Custom Variable click on the + Create Variable
button, A modal will pop up asking for the following data:
Name
The name of your variable.
Type
The type of variable you want to store.
Default Value
This is an optional value, but you can set this as you see fit.
Scope
This has 2 options: Guild - The variable will be available only in the server where the variable value was created. Global - The variable will be available in any server your bot is in.
Unique Variables
You can create unique variables the same way to create custom variables in the builder.
Unique variables are unique to the builder, which means the unique variables you create can only be used inside that builder.
Last updated
Was this helpful?