TheBrain04
TheBrain04
DIAdiscord.js - Imagine an app
Created by TheBrain04 on 12/6/2024 in #djs-questions
Edit Embed with buttons
nvm my bad i have it. But thank you for the tip with the EmbedBuilder.from !
8 replies
DIAdiscord.js - Imagine an app
Created by TheBrain04 on 12/6/2024 in #djs-questions
Edit Embed with buttons
the first console.log() is still executed and then it crashes
8 replies
DIAdiscord.js - Imagine an app
Created by TheBrain04 on 12/6/2024 in #djs-questions
Edit Embed with buttons
i tried this
console.log(interaction.message.embeds[0].title);
const newEmbed = EmbedBuilder.from(interaction.message.embeds[0]).setTitle(
"updated"
);
await interaction.update({ embeds: [newEmbed] });
console.log(interaction.message.embeds[0].title);
console.log(interaction.message.embeds[0].title);
const newEmbed = EmbedBuilder.from(interaction.message.embeds[0]).setTitle(
"updated"
);
await interaction.update({ embeds: [newEmbed] });
console.log(interaction.message.embeds[0].title);
and thas the error....
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[40060]: Interaction has already been acknowledged.
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[40060]: Interaction has already been acknowledged.
8 replies
DIAdiscord.js - Imagine an app
Created by TheBrain04 on 12/6/2024 in #djs-questions
Edit Embed with buttons
okay but how can i acces the oldEmbed ? like this:
interaction.message.embeds[0]
interaction.message.embeds[0]
?
8 replies