logic building question (flow chart included):

First of all, thank you so much for all of the help you guys have given me over the past couple days as I'm building this bot. New to discord.js and you have helped to make it a really fun and engaging experience to learn! I have a working embed, and I've done research into the discord.js to figure out if this was possible I think I've found a way to do what I want, but I wanted to know if this was a feasible way to get what I'm trying to do set up, or if there's another way I should go about it. I have a couple of questions: 1. How would I go about updating a field to an embed after a button is pressed? The way that I'm declaring it now is in an array, so would I just have to reference it that way? Found this for the first question but could use an example for the splice:
EmbedBuilder.spliceFields is easy if you're using builders, otherwise you're not accessing .fields correctly. It's .data.fields for builders or .fields for API embeds
EmbedBuilder.spliceFields is easy if you're using builders, otherwise you're not accessing .fields correctly. It's .data.fields for builders or .fields for API embeds
2. Is there a way to have a user's interaction with a button update a slash command reply that already exists? Answered this myself: https://discordjs.guide/additional-info/changes-in-v13.html#buttoninteraction
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
4 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Snapper
SnapperOP2y ago
Diagrams.net. Check it out if you haven't before great for a ton of design charts haha
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?