Skip to main content

$getPrefixVar

Returns current prefix value (if 'prefix' variable exists)

Usage

$getPrefixVar[guildID?]

Example

client.command({
name: "prefix",
code: `
Current prefix is: $getPrefixVar
` // Will return, for example, '!'
});

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