form channel returning null instead of the channel object
I ran into this weird problem where the channel object would return null.
8 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 OPTo make sure it is not a permission issue i gave the bot administrator permissions
the channel causing issues is vrc-bans in this case
the code here is just
On other channels like vrc-kicks it works fine
[email protected]
node v23.8.0
https://blackwolfwoof.com/s/bnRXke9iRcxtMyZ/download/Awooo_mduWS.mp4
1345717015276687370 to confirm the id is right
-# Ping on reply ty
I ran it outside of the function what was using it by doing
and that works... wird, i will investigate further
ooo watch it because client isn't initialized yet- HOLD ON
YEP... that was the issue.
I have seperate handlers for initializing stuff and since this was in the VRChat handler and not the discord handler it obviously did not wait for the client to be ready