Is this the correct way to fetch the member?
I'm listening to the
messageCreate
event and am fetching the member. Is this the correct way / most optimal way to fetch the member.
4 Replies
- 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 staffmessage.member
is the most concise way to do it in this case
Discord provides the member data if applicable, so fetching isn’t necessary
Attempting to fetch will just return the cached instance since it exists anywaysoh ic, didn't realise that existed.
thanks for the response btw 👍