Fix userid/channelid argument types; rename userid/userID to userId for consistency; misc code style fix

This commit is contained in:
Dragory 2019-08-10 01:47:45 +03:00
parent afd677b270
commit 8d8343543d
6 changed files with 17 additions and 17 deletions

View file

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