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 toolkit2y 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
Syjalo2y ago
Pass selfMute: true option
卐 Cry
卐 CryOP2y ago
can you tell me what you are in
卐 Cry
卐 CryOP2y ago
卐 Cry
卐 CryOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
i can't explain myself my english is very bad how can i do this as command
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
You do not understand me I mean how can I use selfmute outside of joinVoiceChannel
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
yeah
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
yes how can i get it can you help me
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
no this is not what i'm looking for
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
What does that have to do with what I said? I'm just asking how can I selfmute
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
yes but what does that have to do with CommandInteraction
卐 Cry
卐 CryOP2y ago
卐 Cry
卐 CryOP2y 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
卐 CryOP2y ago
卐 Cry
卐 CryOP2y ago
I'm going to write now but I don't know how to selfMute false
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
how do i make selfmute false
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
yes but how can i do that
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
I am trying
卐 Cry
卐 CryOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
卐 Cry
卐 CryOP2y ago
np
d.js docs
d.js docs2y ago
Documentation suggestion for @cry_again:method VoiceState#setMute() Mutes/unmutes the member of this voice state.
卐 Cry
卐 CryOP2y ago
@syjalo Doesn't that just tell us whether it's true or false?
卐 Cry
卐 CryOP2y ago
卐 Cry
卐 CryOP2y ago
Isn't that supposed to happen? but it didn't work I just want to self mute my own bot
卐 Cry
卐 CryOP2y ago
卐 Cry
卐 CryOP2y 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
Want results from more Discord servers?
Add your server