Skip to content

$setGuildVar

$setGuildVar will change the value of a given guild variable.

Usage

$setGuildVar[varname;value;guildID?;table?]

Parameters

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

Example(s)

This will change the value of “Example” to “This is a value”:

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