How can I turn off the microphone on the bot itself?

I can selfmute the bot with the joinVoiceChannel feature, but I couldn't find its external cast. Can anyone help?
40 Replies
d.js toolkit
d.js toolkit14mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Syjalo
Syjalo14mo ago
Pass selfMute: true option
卐 Cry
卐 Cry14mo ago
can you tell me what you are in
卐 Cry
卐 Cry14mo ago
卐 Cry
卐 Cry14mo ago
now i'm using this but how can i turn it on and off with the help of a command @syjalo do you have any knowledge
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
i can't explain myself my english is very bad how can i do this as command
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
You do not understand me I mean how can I use selfmute outside of joinVoiceChannel
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
Actually, I do not use it for command, for example, I will turn on the bota mute when someone enters the sound, but I have no idea how to do this. so selfMute: false
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
yeah
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
yes how can i get it can you help me
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
no this is not what i'm looking for
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
What does that have to do with what I said? I'm just asking how can I selfmute
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
yes but what does that have to do with CommandInteraction
卐 Cry
卐 Cry14mo ago
卐 Cry
卐 Cry14mo ago
this is my voice connect event I want the bot to mute when the voice update is done, that's all selfMute: false
卐 Cry
卐 Cry14mo ago
卐 Cry
卐 Cry14mo ago
I'm going to write now but I don't know how to selfMute false
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
how do i make selfmute false
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
yes but how can i do that
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
I am trying
卐 Cry
卐 Cry14mo ago
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 Cry14mo ago
np
d.js docs
d.js docs14mo ago
Documentation suggestion for @cry_again:method VoiceState#setMute() Mutes/unmutes the member of this voice state.
卐 Cry
卐 Cry14mo ago
@syjalo Doesn't that just tell us whether it's true or false?
卐 Cry
卐 Cry14mo ago
卐 Cry
卐 Cry14mo ago
Isn't that supposed to happen? but it didn't work I just want to self mute my own bot
卐 Cry
卐 Cry14mo ago
卐 Cry
卐 Cry14mo ago
these are my codes I want it to turn on the mute when there is an update in the audio I am trying can you give an example thx