v5.0.0
$getServerVar
Gets server variable value
This function gets the given variables value for the current or specified server

Fields

This function has 1 required field
  1. 1.
    Variable (Required)
  2. 2.
    Server ID (Optional)
Raw Usage: $getServerVar[variable;serverID (optional)]

Options

  • Variable - The variable value we're getting for the <server>
  • Server ID - The server's variable value we're getting

Usage

Current Server's Variable Value
1
bot.command({
2
name: "get",
3
code: `
4
$getServerVar[variable]`
5
})
Copied!
Specified Server's Variable Value
1
bot.command({
2
name: "get",
3
code: `
4
$getServerVar[variable;$message]`
5
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub