$setServerVar
Set the value of the provided server variable to a new value. You can provide a guild ID in the 2nd field to set the variable value of the specific guild.

FUNCTION USAGE

  • $setServerVar[varName;newValue]
  • $setServerVar[varName;varValue;guildID]

Properties:

varName - The variable being called in the command. newValue - New value of the server variable. guildID - The ID of the guild to set the value for.

Example 1: Setting the server variable value

1
bot.Command({
2
name: "set",
3
code:`
4
__Total messages sent in the server__
5
$numberSeparator[$getServerVar[serverMsgs];,]
6
`})
Copied!
Only 1 value can be stored in the same variable in each server. This variable accounts for the entire server
Last modified 6mo ago
Copy link
Contents
Properties: