Skip to content

Commit

Permalink
Bumped Dependencies to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
StrawHatHacker committed Sep 9, 2021
1 parent 2b2a9ca commit d06b920
Show file tree
Hide file tree
Showing 13 changed files with 164 additions and 94 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature rich and easy to maintain. <br/>
Based on the [discord.js](https://github.com/discordjs/discord.js) library.

## 📥 Installation
<b> NPM and Node.js 14.0.0 or higher required. </b> Download [here](https://nodejs.org/) <br/>
<b> Node.js v14.0.0 or higher required. </b> Download [here](https://nodejs.org/) <br/>
<b> MongoDB v4 or higher required. </b> Create [here](https://docs.atlas.mongodb.com/getting-started) for free.
###### 1. Clone this repository from your terminal:
```shell
Expand Down
182 changes: 121 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"repository": "https://github.com/StrawHatHacker/Kiyo-Discord-Bot",
"main": "index.js",
"dependencies": {
"axios": "^0.21.1",
"discord.js": "^12.5.3",
"axios": "^0.21.4",
"discord.js": "^13.1.0",
"dotenv": "^8.6.0",
"mongoose": "^5.13.8",
"mongoose": "^5.13.9",
"readdirp": "^3.6.0"
},
"scripts": {},
Expand Down
6 changes: 3 additions & 3 deletions src/classes/Permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const Err = require('./Err');
*/
module.exports = class Permissions {
/**
* @param {TPermissions} perms
* @param {TPermissions | String[]} perms
*/
constructor(perms) {
if (!(perms instanceof TPermissions))
throw new Err(400).inputErr().setMessage('Parameter `perms` should be an instance of `Collection`');
if (!(perms instanceof TPermissions) && !Array.isArray(perms))
throw new Err(400).inputErr().setMessage('Parameter `perms` should be an instance of `Collection` or an array of permissions');
this.perms = perms;
}

Expand Down
Loading

0 comments on commit d06b920

Please sign in to comment.