owengombas / discord.ts

🤖 Create your discord bot by using TypeScript and decorators!

Home Page:https://owencalvin.github.io/discord.ts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command alias working without a prefix

ZirionNeft opened this issue · comments

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) {...}