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);