Working with Rest API
I'm trying to use REST for the first time, but I can't get it to work. I can't find any docs/references on how to perform actions with it. Right now I'm trying to move myself to a different voice channel, here's my code:
gives the following error:
How do i get my application to do this specific task, and, if not through support channels like this, how would i figure it out?
Using Node.js v20.11.1 & discord.js v14.17.3
3 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 OPguildVoiceStates is for Stage channels according to their docs I think: https://discord.com/developers/docs/resources/voice#modify-user-voice-state
Alright, this seems to be what I need, answering both my questions. Somehow I overlooked that part of the docs. I will try that tomorrow
this works 👍