problem with the bot
Hi,
Until a week ago, the bot was working fine, but now I'm experiencing some issues. For example, it repeats certain messages, like the welcome message, twice. I checked with a friend and he's having the same problem. Do you know what might be causing this?
12 Replies
- 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 OPthe dual welcome message is a discord bug most likely, but without any code or detailed explanation we cant really help
When I get home I'll send the code
I have now solved the welcome. But it also gives problems on this button: https://sourceb.in/G8i6wPslag
When I click it it sends the message twice. (it was working correctly before)
Duplicate listeners
most likely
this includes your bot running twice
actually I have so many events client.on("interaction...") will that be why then?
okay I'll try, although until 3 days ago everything was going correctly
the problem persists
and do you have a single listener now?
yes
Show your updated code
https://sourceb.in/4mtKgY4M6w
I put the code back from before and solved it by doing this:https://sourceb.in/x8Be6d12Z1
but give me error
<rejected> DiscordAPIError: Interaction has already been acknowledged.
Yeah you're running multiple instances of your bot
Or running the same listener twice at least
Now I found out that he also sends double messages... but why all of a sudden did this happen?
I solved it....there were two client.login
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View