kordlib / kordx.commands

Kotlin Command library for Kord and other APIs
MIT License
20 stars 3 forks source link

Don't create multiple instances of Commands and respective CommandData for each alias name. #25

Open Animeshz opened 4 years ago

Animeshz commented 4 years ago

Instead of creating multiple instances of the Command and CommandData in CommandBuilder.build, we can create single Command and store the aliases as List<String> and in BuildEnvironment.addCommand we can point primary name and each aliases to same instance of the Command.

Benefits: