discord-arg-validator
v0.1.0
Published
A type validator for arguments for your discord bot
Downloads
9
Maintainers
Readme
discord-arg-validator
Argument type validator for Discord bots
Installation
npm i discord-arg-validator
Usage
const { validate, Number, YesNo, String } = require("discord-arg-validator");
validate(["foo", "bar", "2", "yes", "no"], [String, String, Number, YesNo, YesNo]) //true
validate(["foo", "bar", "23"], [Number, Number, YesNo]) // TypeError