Chloe
Chloe
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
i changed line 202 to
reply.edit({ embeds: [embed], components: [row] });
reply.edit({ embeds: [embed], components: [row] });
and it works as it should now is there anything i should worry about with this aproach or should i just let it be?
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
talks about line 202
interaction.update({ embeds: [embed], components: [row] });
interaction.update({ embeds: [embed], components: [row] });
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
so i did that and new error progress!
if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied);
^

Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ButtonInteraction.update (D:\Projekty\dis bot\pull-bot\node_modules\discord.js\src\structures\interfaces\Inter
actionResponses.js:225:46)
at handleValidation (D:\Projekty\dis bot\pull-bot\commands\utility\dashboard.js:202:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'InteractionAlreadyReplied'
}

Node.js v20.12.2
if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied);
^

Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ButtonInteraction.update (D:\Projekty\dis bot\pull-bot\node_modules\discord.js\src\structures\interfaces\Inter
actionResponses.js:225:46)
at handleValidation (D:\Projekty\dis bot\pull-bot\commands\utility\dashboard.js:202:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'InteractionAlreadyReplied'
}

Node.js v20.12.2
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
No description
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
but how do i pass the button interaction?
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
i kinda get it
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
huh
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
wait
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
No description
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
Replaced it everywhere though now i get an error about it
interaction.update({ embeds: [embed], components: [row] });
^

TypeError: interaction.update is not a function
at handleValidation (D:\Projekty\dis bot\pull-bot\commands\utility\dashboard
.js:202:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5
)

Node.js v20.12.2
interaction.update({ embeds: [embed], components: [row] });
^

TypeError: interaction.update is not a function
at handleValidation (D:\Projekty\dis bot\pull-bot\commands\utility\dashboard
.js:202:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5
)

Node.js v20.12.2
20 replies
DIAdiscord.js - Imagine an app
Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
mp4 video*
20 replies