6 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!djs
v14.16.2
node v20.14.0
that is correct, targets may be invites, which do not have an id
something being nullable (which is what you can use optional chaining for) is different from the definition of the key not existing at all in that type
but since i made it typesafe shouldn't the target type change to something to do with channelcreate so id isnt erroring?
ah ok. so how do i silence the error? the proper way
thanks