Skip to content

$resetGuildVar

$resetGuildVar will set a given guild variable to its default value.

Usage

$resetGuildVar[varname;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
table?stringVariable table.false

Example(s)

This will reset a variable called “Example”:

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