Use command aliases/overloads where applicable
This commit is contained in:
parent
ad10a79b6c
commit
503f1ff170
5 changed files with 18 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue