N
N
not important .2022-01-14 13:05:52
Node.js
not important ., 2022-01-14 13:05:52

How to use multiple name?

My command is called like this:

client.commands.set(props.help.name);
module.exports.help = {
    name: "command"
};

But I want to be able to call the command with multiple names:
client.commands.set(props.help.name);
module.exports.help = {
    name: ["command", "cmd", "c"]
};

If I enter one of the above names, then the command should work, but how do I do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question