Skip to content

Commit

Permalink
update editButton.js (#679)
Browse files Browse the repository at this point in the history
Update editButton.js
  • Loading branch information
tyowk authored Dec 20, 2024
1 parent d709d85 commit 371ef00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/editButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = async (d) => {
const inside = d.unpack();
if (data.err) return d.error(data.err);

let [customId, label, style, disabled, emoji, messageID, channelID = d.channel.id] = data.inside.splits;
let [customId, label, style, disabled, emoji, messageID = d.message.id, channelID = d.channel.id] = data.inside.splits;

const channel = await d.util.getChannel(d, channelID);
if (!channel) return d.aoiError.fnError(d, "channel", { inside: data.inside });
Expand Down

0 comments on commit 371ef00

Please sign in to comment.