UnbelievaBoat / unb-api

API wrapper for UnbelievaBoat Discord Bot API
https://unbelievaboat.com/api/docs
MIT License
52 stars 32 forks source link

Fixed a type error and refactored param checking and jsdoc #6

Closed BannerBomb closed 3 years ago

BannerBomb commented 3 years ago

I fixed a type error where a map was being used as an object. I refactored the param type checks to fix some unwanted results such as providing 0 for a balance option when setting a users balance or providing a different type than what should be provided. I also updated the type definition file to fix incorrect types being used and the jsdoc in the client file to include a link to the api documentation section related to the method.