Skip to content

Commit

Permalink
feat(core): support abbreviated subcommand alias (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seidko authored Jan 9, 2023
1 parent 05ff45d commit a89dfc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/command/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export class Command<U extends User.Field = never, G extends Channel.Field = nev

private _registerAlias(name: string, prepend = false) {
name = name.toLowerCase()
if (name.startsWith('.')) name = this.parent.name + name

// add to list
const done = this._aliases.includes(name)
Expand Down

0 comments on commit a89dfc8

Please sign in to comment.