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:
Discord.js:
OS:
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
5th log is from the
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.
Node.js:
v18.12.1Discord.js:
v14.9.0OS:
Ubuntu 20.04 LTSCode:
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 event5th 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.