Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Version 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Paultje52 committed Feb 22, 2019
1 parent 7b261f8 commit f7d8f4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bananenbase",
"version": "3.1.1",
"version": "3.1.2",
"description": "Thé discord.js AND express framework!",
"main": "src/index.js",
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/bot/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ module.exports = async (client, message) => {

// CommandLevel
this.cmdLevelCheck = this.client.config.permissionLevels[this.cmd.permLevel];
if (this.cmdLevelCheck) await this.cmdLevelCheck(this.client, message, this.args);
if (this.cmdLevelCheck)this.cmdLevelCheck = await this.cmdLevelCheck(this.client, message, this.args);
else this.cmdLevelCheck = false;
if (!this.cmdLevelCheck) return message.channel.send(message.embed().setTitle("No permission!").setDescription(`The **${this.cmd.help.name}** command requires permission level **${this.cmd.permLevel}**, but you don't have it!`));

// User permissions
Expand Down

0 comments on commit f7d8f4d

Please sign in to comment.