From 6c7077ed17591e7f1266e8ef72d87289fcc2244a Mon Sep 17 00:00:00 2001 From: Emi <136156874+aho-emi@users.noreply.github.com> Date: Wed, 25 Oct 2023 07:43:32 +0545 Subject: [PATCH] Update editButton.js changes --- src/functions/util/editButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/util/editButton.js b/src/functions/util/editButton.js index ad36aa495..20e43b1f3 100644 --- a/src/functions/util/editButton.js +++ b/src/functions/util/editButton.js @@ -12,7 +12,7 @@ module.exports = async (d) => { const message = await d.util.getMessage(channel, messageId); if (!message) return d.aoiError.fnError(d, "message", { inside: data.inside }); if (!customId) return d.aoiError.fnError(d, "custom", { inside: data.inside }, "Empty customId was provided"); - if (isNaN(index) || Number(index) < 1) d.aoiError.fnError(d, "custom", { inside: data.inside }, "Invalid Index Provided In"); + if (isNaN(index) || Number(index) < 1) d.aoiError.fnError(d, "custom", {inside}, "Invalid Index Provided In"); index = Number(index) - 1; if (style) { style = d.util.constants.ButtonStyleOptions[style] || Number(style);