Discord API Error

I had made a purge command. But the issue is I didn't set any cooldown on it and I am not sure if that's creating the issue. Issue - I tried using purge 2-3 times continuously for testing purposes. It worked perfectly fine for 1-2 times then the "The application did not respond" came. Code ( it was too long so I had to put it on pastebin ) - https://pastebin.com/abv3J4iX Was this due to API error or something in my code isn't right. Please reply if any other resource is required for consideration.
Pastebin
const command = "purge";const { SlashCommandBuilder, EmbedBuilder...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
No description
3 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
monbrey
monbrey11mo ago
Attempted to delete an already deleted message
Gripz
GripzOP11mo ago
how ? The interaction reply ? Ok. Thanks 👍🏼 I got it what you said. In line 128, it tries to delete a message. But if I run the purge command again and again before waiting for 30 seconds the publicLog message gets deleted and that throws an error because.

Did you find this page helpful?