From 5f02679097328ce9aab9fae9ae062b11f8149eb6 Mon Sep 17 00:00:00 2001 From: Faf4a Date: Sat, 21 Oct 2023 09:05:08 +0200 Subject: [PATCH] fix: invalid usage of data --- src/functions/interaction/killShard.js | 2 +- src/functions/interaction/spawnShard.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/interaction/killShard.js b/src/functions/interaction/killShard.js index 1d2749a1b..cf41f4392 100644 --- a/src/functions/interaction/killShard.js +++ b/src/functions/interaction/killShard.js @@ -2,7 +2,7 @@ module.exports = async d => { const data = d.util.aoiFunc(d); if (data.err) return d.error(data.err); - const shardId = data.inside.inside; + const [shardId = 0] = data.inside.splits; await d.client.shard.broadcastEval(c => { if (c.shard.ids.includes(Number(shardId))) process.exit(); diff --git a/src/functions/interaction/spawnShard.js b/src/functions/interaction/spawnShard.js index d4a45fab6..0be32f158 100644 --- a/src/functions/interaction/spawnShard.js +++ b/src/functions/interaction/spawnShard.js @@ -2,7 +2,7 @@ module.exports = async d => { const data = d.util.aoiFunc(d); if (data.err) return d.error(data.err); - const shardId = data.inside.inside; + const [shardId = 0] = data.inside.splits; await d.client.shard.broadcastEval(c => { if (c.shard.ids.includes(Number(shardId))) c.spawn();