Changed function isAuthorDev to isDev

This commit is contained in:
Christer 2020-04-05 00:34:34 +03:00
parent 99822124df
commit fd6dd36765
2 changed files with 2 additions and 2 deletions

View File

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

View File

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