[Audio] disconnect
command should check if the user is actually in the VC
#6365
Labels
Status: Needs Triage
This has not been labeled or discussed for handling yet.
Type: Bug
Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
What Red version are you using?
3.5.9
Cog name
Audio
Command name
disconnect
What did you expect to happen?
summon
command - thedisconnect
cmd should also check if the user (who is invoking the command) actually is in the VC before letting them disconnect the bot from the VC - where it's already playing songs along with other humans.What actually happened?
It lets anyone who is not in the VC, run the command resulting in the bot getting disconnected from the VC, leading to an unpleasant experience.
How can we reproduce this error?
audioset vote 0
<p>mock
anyone to run<p>disconnect
Result - It should let that user x disconnect the bot without having to be there in the VC.
Same result with or without the human. (Meaning if the bot is alone or with other users doesn't matter)
Anything else?
N/A
The text was updated successfully, but these errors were encountered: