From 086c51f367eecb2c03e34ae45782903969cfaa5f Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Fri, 10 Jul 2020 16:33:45 +0300 Subject: [PATCH] Update restart.js --- src/commands/restart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/restart.js b/src/commands/restart.js index 1e40d599..dbcc4cbe 100644 --- a/src/commands/restart.js +++ b/src/commands/restart.js @@ -7,9 +7,9 @@ module.exports = { permission: 'dev', category: 'util', async execute(msg, args, client, Discord, command) { - client.funcs.saveDB(client); + client.shard.broadcastEval("this.funcs.saveDB(this);"); msg.channel.send(client.messages.dbSaved); msg.channel.send(client.messages.restart); client.shard.respawnAll(client.config.shardDelay, client.config.respawnDelay, client.config.spawnTimeout); } -}; +}; \ No newline at end of file