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
d.js toolkit
d.js toolkit6mo 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
treble/luna
treble/luna6mo ago
the dual welcome message is a discord bug most likely, but without any code or detailed explanation we cant really help
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
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)
treble/luna
treble/luna5mo ago
Duplicate listeners most likely this includes your bot running twice
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
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
treble/luna
treble/luna5mo ago
and do you have a single listener now?
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
yes
treble/luna
treble/luna5mo ago
Show your updated code
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
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.
treble/luna
treble/luna5mo ago
Yeah you're running multiple instances of your bot Or running the same listener twice at least
! VDEVHD C&M
! VDEVHD C&MOP5mo ago
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
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server