How can I programmatically set or update the voice channel status

I'm referring to the line that appears under the voice channel name, like a heart emoji or a short status message. Is there any way to do this using Discord's API or via discord.js, or is it strictly limited to manual editing via the UI?
7 Replies
d.js toolkit
d.js toolkit•6d ago
- 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!
NyR
NyR•6d ago
It's not documented by Discord, so it is not supported by d.js. Anything outside of it would not be d.js related
aMeow
aMeow•6d ago
Not supported but this should do the trick:
client.rest.put(`/channels/${channelId}/voice-status`, { body: {status: "some string"} })
client.rest.put(`/channels/${channelId}/voice-status`, { body: {status: "some string"} })
ReactiveTurtle🌸🥀
I'll try it, thx))
_me.xi ツ
_me.xi ツ•5d ago
from where did you get that route :Thinkeng:
d.js docs
d.js docs•5d ago
discord.js does not support features until they are officially documented. While there might be a way for these features to work, it can change at any time without any notice
aMeow
aMeow•5d ago
🫠

Did you find this page helpful?