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

@ -223,8 +223,9 @@ export class SlowmodePlugin extends ZeppelinPlugin<ISlowmodePluginConfig> {
/**
* COMMAND: Set slowmode for the specified channel
*/
@d.command("slowmode", "<channel:channel> <time:string>")
@d.command("slowmode", "<time:string>")
@d.command("slowmode", "<channel:channel> <time:string>", {
overloads: ["<time:string>"],
})
@d.permission("can_manage")
async slowmodeCmd(msg: Message, args: { channel?: GuildChannel & TextChannel; time: string }) {
const channel = args.channel || msg.channel;