mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-15 01:20:19 +00:00
25 lines
1.3 KiB
JavaScript
25 lines
1.3 KiB
JavaScript
module.exports = async function (client) {
|
|
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 = [];
|
|
if (client.global.db.guilds[guild.id].premium === undefined)
|
|
client.global.db.guilds[guild.id].premium = false;
|
|
});
|
|
};
|