Skip to content

$getGuildVar

$getGuildVar will return the value of a given guild variable.

Usage

$getGuildVar[varname;guildID?;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
guildID?numberGuild ID.false
table?stringVariable table.false

Example(s)

This will return the value of a variable called “Example”:

1
client.command({
2
name: "getGuildVar",
3
code: `
4
$getGuildVar[Example;$guildID;main]
5
`
6
});