Variables
resetServerVar
$resetServerVar[]
$resetServerVar restores a guild-scoped variable to its default value defined in the Bot Creator Variables UI. If no default is defined, the stored value is removed. $resetGuildVar is an exact alias and can be used interchangeably.
Syntax
bdfd
$resetServerVar[name] or $resetServerVar[name;Guild ID]
When called with only a name, it resets the variable for the current guild. When a Guild ID is provided, it resets the variable for the specified server.
Use this function to revert server settings to their defaults, clear maintenance mode, or perform bulk resets. After resetting, $getServerVar returns the default value (if defined) or an empty string. This function does not return any output.
Examples
Reset Server Configuration
$resetServerVar[welcomeMessage;$guildID]
$title[Reset Server Setting]
$description[Welcome message has been restored to default template.]
$color[#57F287]
$sendMessage[]