2020-03-21 17:49:25 +00:00
|
|
|
module.exports = async function (client) {
|
2020-04-19 17:00:16 +00:00
|
|
|
client.guilds.cache.forEach((guild) => {
|
|
|
|
if (client.global.db.guilds[guild.id].prefix === undefined)
|
|
|
|
client.global.db.guilds[guild.id].prefix = client.config.prefix;
|
|
|
|
if (client.global.db.guilds[guild.id].defaultVolume === undefined)
|
|
|
|
client.global.db.guilds[guild.id].defaultVolume =
|
|
|
|
client.config.defaultVolume;
|
|
|
|
if (client.global.db.guilds[guild.id].permissions === undefined)
|
|
|
|
client.global.db.guilds[guild.id].permissions = client.config.permissions;
|
|
|
|
if (client.global.db.guilds[guild.id].dj === undefined)
|
|
|
|
client.global.db.guilds[guild.id].dj = client.config.dj;
|
|
|
|
if (client.global.db.guilds[guild.id].djrole === undefined)
|
|
|
|
client.global.db.guilds[guild.id].djrole = client.config.djrole;
|
|
|
|
if (client.global.db.guilds[guild.id].startPlaying === undefined)
|
|
|
|
client.global.db.guilds[guild.id].startPlaying =
|
|
|
|
client.config.startPlaying;
|
|
|
|
if (client.global.db.guilds[guild.id].bass === undefined)
|
|
|
|
client.global.db.guilds[guild.id].bass = client.config.bass;
|
|
|
|
if (client.global.db.guilds[guild.id].blacklsit === undefined)
|
|
|
|
client.global.db.guilds[guild.id].blacklist = [];
|
2020-04-19 17:34:38 +00:00
|
|
|
if (client.global.db.guilds[guild.id].premium === undefined)
|
|
|
|
client.global.db.guilds[guild.id].premium = false;
|
2020-04-19 17:00:16 +00:00
|
|
|
});
|
|
|
|
};
|