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