owengombas / discord.ts

🤖 Create your discord bot by using TypeScript and decorators!
https://owencalvin.github.io/discord.ts/
324 stars 40 forks source link

Command alias working without a prefix #17

Closed ZirionNeft closed 3 years ago

ZirionNeft commented 4 years ago

If use some command alias like in example without a prefix, command will running.

protected static _aliases = [
    "alias1",
    "alias2",
    "alias3",
  ];

  @Command("help")
  @Rules(Rule(_aliases.join("|")).end())
  async runCommand(command: CommandMessage) {...}