Issues with sending messages.
Lately I've been coming across an very odd issue, the application fails to
followUp
or editReply
reaction messages as well as send anything to a logging webhook I have setup. For example I'm current using the ping slash command example that is on the GitHub. It only sends the Ping?
and is unable to edit the message after that.
Not really sure how to explain this but if anyone would be willing to help me track down this issue it would be greatfull.Solution:Jump to solution
Nonsense, then it would be more wide spread across many users because everyone is using the same interactionCreate listener. Furthermore the fact that Jonny also has issues sending webhook messages, that's completely devoid of listeners.
It's not the first time djs support people point straight back to sapphire Without proper consideration. (cc @vladdy can we, through the staff, do something about this?)...
18 Replies
I'm getting a feeling that your network responses are slow. But that shouldn't be a problem still 🤔
Can you try again with defer reply enabled?
I might have the same issue
deferReply does error but shows
thinking...
in discord right?
code crashes and can't reply because of unknown interaction
and it stays thinking forever right?Correct
Just thinking with no errors
To further narrow down, are you calling deferReply?
And does deffering throw an error?
Yes I call deferreply. But I get no error.
Does followUp right afterwards result in specifically
unknown webhook
?No just no response or error. And this only happens sometimes.
I have a webhook class setup that send my logs.
I send all logs using this webhook right.
When i start my bot I send these.
There are times when I start my bot those logs will not be sent, and then any deferred message or any message I try to edit just hangs with 0 errors.
Can't say anything about your initial logging webhooks, those honestly look completely fine although I'm not in the same situation.
I'm dealing only with the hanging defers that happen randomly in production when responding to command interactions, trying to figure out if we're in the same boat with that
Yeah I have no idea.
FWIW this is not a sapphire issue. This is all discordjs code.
I use sapphire tho
DJs people said multiple listeners could be it
Sapphire is built around djs.
Solution
Nonsense, then it would be more wide spread across many users because everyone is using the same interactionCreate listener. Furthermore the fact that Jonny also has issues sending webhook messages, that's completely devoid of listeners.
It's not the first time djs support people point straight back to sapphire Without proper consideration. (cc @vladdy can we, through the staff, do something about this?)
I'm honestly in camp network related when you say you cannot even send webhook messages @Jonny