.demonslayer
DIAdiscord.js - Imagine a bot
•Created by .demonslayer on 9/1/2023 in #djs-questions
Duplicate Message Send
Hello, I've been having an issue with a channel.send() call occasionally resulting in a message being sent multiple times.
Node.js:
v18.12.1
Discord.js: v14.9.0
OS: Ubuntu 20.04 LTS
Code:
Upon this function executing, I receive the following logs:
First 3 logs are requests made by undici,
4th log is from a client.rest response
event
5th log is from the .then()
method called on the promise returned by channel.send()
It appears that despite my function only being called once, the message is being sent multiple times.
If anyone has an idea as to what could cause this, please let me know.6 replies