Skip to main content

$setPrefixVar

Changes the current prefix value to another (if 'prefix' variable exists)

Usage

$setPrefixVar[value;guildID?]

Example

client.command({
name: "set-prefix",
code: `
Changed the prefix to '?'
$setPrefixVar[?]
`
});

:::disclaimer You'll need to add 'prefix' variable into your variable list before using this function for avoiding possible errors! Example