Context menu trigger either creates or edits a message

I have a message context menu command that's working for the first if statement where it checks the database and creates a message in a different channel if the searched table is empty. However, I also have included other statements for if the number of results in the database is less than 3 (with it being the same callerId or not) it just edits the message's embed sent in the different channel, and if the number of results is greater than or equal to 3 with different callerId's, it just edits the message's embed and components sent in the different channel. I have a final part where it replies back to the user of the command which works fine, and there are no errors showing in logs. It is just unable to edit the message. Using 14.9.0. https://sourceb.in/oBfNmBBLKG
2 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.
leguchi
leguchiOP2y ago
I found thtat I was trying to edit something else that wasn't the message 😁 mab thanks!
Want results from more Discord servers?
Add your server