Reputation: 31
When created in a command, this command is called every prefix. So suppose I have created a "help" command, then I can use everything as a prefix.
Examples: !Help ?Help .Help -Help
How do I set that I have a fixed prefix.
(I use a command handler by the way)
Upvotes: 0
Views: 119
Reputation: 218
I don't get what you mean. Do you want to use !, /, -,
etc.. prefixes for your help command ? Or do you want a one prefix like !
?
{
"prefix": "YOUR PREFIX HERE"
}
const { prefix } = require("./config.json");
bot.on('message', message => {
if (!message.content.startsWith(prefix)) return;
})
Upvotes: 1