Skip to content

Commit

Permalink
Update editButton.js
Browse files Browse the repository at this point in the history
changes
  • Loading branch information
baka-aho authored Oct 25, 2023
1 parent 14e350a commit 6c7077e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/util/editButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c7077e

Please sign in to comment.