deferReply() with withResponse/fetchReply
I decided to go back to dev and after updating discord.js, I noticed that fetchReply was decrapted, and when I switch to withResponse, I get NaN for API latency.
5 Replies
The
fetchReply option when replying to an interaction will be removed in v15.
This returns an InteractionCallbackResponse
Use <InteractionCallbackResponse>.resource.message to get the messagereally?
msg -> callback.resource.message
why do that 😭
okay thx for your help
discord didn't have a way to get the new message while replying, so fetchReply was added since it's a useful thing to have, it fetches manually after the reply is done, with a separate api call
now recently discord added the withResponse parameter, which actually returns the message in the reply's response, so an extra api call isn't needed anymore
but it does change where you get the message since it doesn't return the message directly, it's inside that resource object, hence the change
haaa, okay