Skip to content

Commit

Permalink
Update edge case in dms
Browse files Browse the repository at this point in the history
  • Loading branch information
coopw1 committed Sep 9, 2024
1 parent e3a9c82 commit 3e98e5a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/commands/general/brainz.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ module.exports = {
setTimeout(function () {
buttonRow1.components[0].setDisabled(true);
buttonRow1.components[1].setDisabled(true);
message.edit({ components: [buttonRow1] });
interaction.editReply({ components: [buttonRow1] });
}, 180_000);

// Handle the collector
Expand Down
4 changes: 2 additions & 2 deletions src/commands/general/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ module.exports = {

setTimeout(function () {
row.components[0].setDisabled(true);
message.edit({ components: [row] });
interaction.editReply({ components: [row] });
}, 180_000);

// Handle the collector
collector.on("collect", async (buttonInteraction) => {
if (buttonInteraction.customId === "showunsimilar") {
row.components[0].setDisabled(true);
message.edit({ components: [row] });
buttonInteraction.update({ components: [row] });
const userTop = await getTopStatistics(
listenBrainzToken,
brainzUsername,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/images/YIM.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module.exports = {
setTimeout(function () {
row.components[0].setDisabled(true);
row.components[1].setDisabled(true);
message.edit({ components: [row] });
interaction.editReply({ components: [row] });
}, 600_000);

collector.on("collect", async (i) => {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/userSettings/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = {
setTimeout(function () {
row.components[0].setDisabled(true);
row.components[1].setDisabled(true);
message.edit({ components: [row] });
interaction.editReply({ components: [row] });
}, 180_000);

// Handle the collector
Expand Down
2 changes: 1 addition & 1 deletion src/commands/util/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = async (interaction, embeds, maxPages, footer = "") => {
setTimeout(function () {
row.components[0].setDisabled(true);
row.components[1].setDisabled(true);
message.edit({ components: [row] });
interaction.editReply({ components: [row] });
}, 240_000);

// Handle the collector
Expand Down

0 comments on commit 3e98e5a

Please sign in to comment.