Skip to content

Commit

Permalink
fix psot issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Mar 15, 2024
1 parent 121ed29 commit 5d6153f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion functions/ENGINE/checkin/COMPONENT/button/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports.run = async (interaction) => {
interaction.channel.send(`<@&${config.teamRole}>`);

// gray out button
interaction.update({ components: [buttons] });
interaction.message.edit({ components: [buttons] });
};

module.exports.data = {
Expand Down
2 changes: 2 additions & 0 deletions functions/ENGINE/checkin/postReaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ module.exports.run = async (message) => {

// dont activate 'checked' button, if DoB has not been checked
const buttonsAdd = buttonsSetup({ checked: DoB ? checked : true, DoB });
// check, if it was deferred
if (message.deferred) return message.editReply({ embeds: [embed], components: [buttonsAdd] });
message.reply({ embeds: [embed], components: [buttonsAdd] });
};

Expand Down

0 comments on commit 5d6153f

Please sign in to comment.