Use command aliases/overloads where applicable

This commit is contained in:
Dragory 2019-04-13 02:23:45 +03:00
parent ad10a79b6c
commit 503f1ff170
5 changed files with 18 additions and 13 deletions

View file

@ -324,8 +324,9 @@ export class UtilityPlugin extends ZeppelinPlugin<IUtilityPluginConfig> {
});
}
@d.command("clean", "<count:number>")
@d.command("clean all", "<count:number>")
@d.command("clean", "<count:number>", {
aliases: ["clean all"],
})
@d.permission("can_clean")
async cleanAllCmd(msg: Message, args: { count: number }) {
if (args.count > MAX_CLEAN_COUNT || args.count <= 0) {