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

@ -214,8 +214,9 @@ export class SelfGrantableRolesPlugin extends ZeppelinPlugin<ISelfGrantableRoles
lock.unlock();
}
@d.command("role help")
@d.command("role")
@d.command("role help", [], {
aliases: ["role"],
})
@d.cooldown(5000, "can_ignore_cooldown")
async roleHelpCmd(msg: Message) {
const channelGrantableRoles = await this.selfGrantableRoles.getForChannel(msg.channel.id);