3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 04:45:02 +00:00

Allow mentions in "!clean user"; fix some clean command bugs

This commit is contained in:
Dragory 2018-11-24 19:42:51 +02:00
parent 9687359105
commit 22c515be38
2 changed files with 6 additions and 2 deletions

View file

@ -178,7 +178,7 @@ export class UtilityPlugin extends Plugin {
}, CLEAN_COMMAND_DELETE_DELAY);
}
@d.command("clean user", "<userId:string> <count:number>")
@d.command("clean user", "<userId:userid> <count:number>")
@d.permission("clean")
async cleanUserCmd(msg: Message, args: { userId: string; count: number }) {
if (args.count > MAX_CLEAN_COUNT || args.count <= 0) {