1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 03:33:17 +00:00

Update saveDB.ts

This commit is contained in:
Matte 2020-04-06 00:31:05 +03:00 committed by GitHub
parent 7ece5cd91c
commit f53bfd2745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
module.exports = async function (client) { module.exports = async function (client) {
if (client.config.saveDB && !client.config.devMode) { if (client.config.saveDB && !client.config.devMode) {
console.log('DB saved'); //console.log('DB saved');
client.guilds.cache.forEach(guild => { client.guilds.cache.forEach(guild => {
client.db.collection('guilds').doc(guild.id).set({ client.db.collection('guilds').doc(guild.id).set({
prefix: client.global.db.guilds[guild.id].prefix, prefix: client.global.db.guilds[guild.id].prefix,