From fd6dd36765cb927034d076340cf706098971bb97 Mon Sep 17 00:00:00 2001 From: Christer Date: Sun, 5 Apr 2020 00:34:34 +0300 Subject: [PATCH] Changed function isAuthorDev to isDev --- client/class.js | 2 +- client/commands/maintenance.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/class.js b/client/class.js index 3c769d5..9dc0fc7 100644 --- a/client/class.js +++ b/client/class.js @@ -19,7 +19,7 @@ module.exports = class extends Client { this.funcs.check = require('./funcs/check.js'); this.funcs.msToTime = require('./funcs/msToTime.js'); this.funcs.statisticsUpdate = require('./funcs/statisticsUpdate.js'); - this.funcs.isAuthorDev = require('./funcs/isAuthorDev.js'); + this.funcs.isDev = require('./funcs/isDev.js'); this.config = require('../config.js'); this.messages = require('./messages.js'); diff --git a/client/commands/maintenance.js b/client/commands/maintenance.js index c0661d9..b304428 100644 --- a/client/commands/maintenance.js +++ b/client/commands/maintenance.js @@ -17,7 +17,7 @@ module.exports = { return msg.channel.send(embed); */ - if(!client.funcs.isAuthorDev(client.config.devId, msg.author.id)) return msg.channel.send(client.messageEmojis["error"] + "You are not allowed to do that!"); + if(!client.funcs.isDev(client.config.devId, msg.author.id)) return msg.channel.send(client.messageEmojis["error"] + "You are not allowed to do that!"); if(!client.stations) { message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);