Skip to content

Commit b955712

Browse files
committed
Merge branch 'main' of https://github.com/coopw1/BrainzBot
2 parents 5cc796d + 3e98e5a commit b955712

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

src/commands/general/brainz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ module.exports = {
510510
setTimeout(function () {
511511
buttonRow1.components[0].setDisabled(true);
512512
buttonRow1.components[1].setDisabled(true);
513-
message.edit({ components: [buttonRow1] });
513+
interaction.editReply({ components: [buttonRow1] });
514514
}, 180_000);
515515

516516
// Handle the collector

src/commands/general/compare.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ module.exports = {
162162

163163
setTimeout(function () {
164164
row.components[0].setDisabled(true);
165-
message.edit({ components: [row] });
165+
interaction.editReply({ components: [row] });
166166
}, 180_000);
167167

168168
// Handle the collector
169169
collector.on("collect", async (buttonInteraction) => {
170170
if (buttonInteraction.customId === "showunsimilar") {
171171
row.components[0].setDisabled(true);
172-
message.edit({ components: [row] });
172+
buttonInteraction.update({ components: [row] });
173173
const userTop = await getTopStatistics(
174174
listenBrainzToken,
175175
brainzUsername,

src/commands/images/YIM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ module.exports = {
140140
setTimeout(function () {
141141
row.components[0].setDisabled(true);
142142
row.components[1].setDisabled(true);
143-
message.edit({ components: [row] });
143+
interaction.editReply({ components: [row] });
144144
}, 600_000);
145145

146146
collector.on("collect", async (i) => {

src/commands/userSettings/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module.exports = {
8282
setTimeout(function () {
8383
row.components[0].setDisabled(true);
8484
row.components[1].setDisabled(true);
85-
message.edit({ components: [row] });
85+
interaction.editReply({ components: [row] });
8686
}, 180_000);
8787

8888
// Handle the collector

src/commands/util/pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = async (interaction, embeds, maxPages, footer = "") => {
6060
setTimeout(function () {
6161
row.components[0].setDisabled(true);
6262
row.components[1].setDisabled(true);
63-
message.edit({ components: [row] });
63+
interaction.editReply({ components: [row] });
6464
}, 240_000);
6565

6666
// Handle the collector

src/utils/areCommandsDifferent.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ module.exports = (existingCommand, localCommand) => {
5454
JSON.stringify(localCommand.integrationTypes)) ||
5555
areOptionsDifferent(existingCommand.options, localCommand.options || [])
5656
) {
57-
if (existingCommand.name === "big") {
58-
console.log(existingCommand.options);
59-
console.log(localCommand.options);
60-
console.log(
61-
JSON.stringify(existingCommand.options) !=
62-
JSON.stringify(localCommand.options)
63-
);
64-
}
6557
return true;
6658
}
6759

0 commit comments

Comments
 (0)