From cf18050a019c09f1d87a231c03b415d7dfd8d7bb Mon Sep 17 00:00:00 2001 From: Leref <12578483+Leref@users.noreply.github.com> Date: Sun, 3 Dec 2023 01:28:20 -0500 Subject: [PATCH] made $shard return error method --- src/functions/event/shard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functions/event/shard.js b/src/functions/event/shard.js index 0df7970d5..60681e465 100644 --- a/src/functions/event/shard.js +++ b/src/functions/event/shard.js @@ -1,5 +1,6 @@ module.exports = async (d) => { const data = d.util.aoiFunc(d); + if (data.err) return d.error(data.err); const [option] = data.inside.splits;