Skip to content

Commit

Permalink
fix: invalid usage of data
Browse files Browse the repository at this point in the history
  • Loading branch information
Faf4a committed Oct 21, 2023
1 parent 3b35de8 commit 5f02679
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/functions/interaction/killShard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/functions/interaction/spawnShard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5f02679

Please sign in to comment.