mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 03:53:17 +00:00
Changed function isAuthorDev to isDev
This commit is contained in:
parent
99822124df
commit
fd6dd36765
@ -19,7 +19,7 @@ module.exports = class extends Client {
|
|||||||
this.funcs.check = require('./funcs/check.js');
|
this.funcs.check = require('./funcs/check.js');
|
||||||
this.funcs.msToTime = require('./funcs/msToTime.js');
|
this.funcs.msToTime = require('./funcs/msToTime.js');
|
||||||
this.funcs.statisticsUpdate = require('./funcs/statisticsUpdate.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.config = require('../config.js');
|
||||||
this.messages = require('./messages.js');
|
this.messages = require('./messages.js');
|
||||||
|
@ -17,7 +17,7 @@ module.exports = {
|
|||||||
return msg.channel.send(embed);
|
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) {
|
if(!client.stations) {
|
||||||
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
||||||
|
Loading…
Reference in New Issue
Block a user