Skip to content

$resetUserVar

$resetUserVar will set a given user variable to its default value of a given guild.

Usage

$resetUserVar[varname;guildID?;table?]

Parameters

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

Example(s)

This will reset a variable called “Example”:

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