From acb61558b2ed6b9ee18bfa5ad37ec4d02c940b19 Mon Sep 17 00:00:00 2001 From: Leref <12578483+Leref@users.noreply.github.com> Date: Wed, 25 Oct 2023 11:21:05 -0400 Subject: [PATCH] updated params --- src/functions/util/editButton.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions/util/editButton.js b/src/functions/util/editButton.js index d937b7c59..89bcdc480 100644 --- a/src/functions/util/editButton.js +++ b/src/functions/util/editButton.js @@ -5,11 +5,11 @@ module.exports = async (d) => { const inside = d.unpack(); if (data.err) return d.error(data.err); - let [index, customId, custom, label, style, disabled, emoji, messageId, channelId = d.channel.id] = data.inside.splits; + let [index, customId, custom, label, style, disabled, emoji, messageID, channelID = d.channel.id] = data.inside.splits; - const channel = await d.util.getChannel(d, channelId); + const channel = await d.util.getChannel(d, channelID); if (!channel) return d.aoiError.fnError(d, "channel", { inside: data.inside }); - const message = await d.util.getMessage(channel, messageId); + 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 }, "Empty customId was provided"); if (isNaN(index) || Number(index) < 1) d.aoiError.fnError(d, "custom", {inside}, "Invalid Index Provided In");