Skip to content

fix for audio disconnect command not checking perms #6385

Closed
BenCos17 wants to merge 23 commits into
Cog-Creators:V3/developfrom
BenCos17:V3/develop
Closed

fix for audio disconnect command not checking perms #6385
BenCos17 wants to merge 23 commits into
Cog-Creators:V3/developfrom
BenCos17:V3/develop

Conversation

@BenCos17
Copy link
Copy Markdown
Contributor

@BenCos17 BenCos17 commented May 31, 2024

Description of the changes

fixes #6365

Have the changes in this PR been tested?

Yes

@github-actions github-actions Bot added the Category: Cogs - Audio This is related to the Audio cog. label May 31, 2024
@BenCos17 BenCos17 marked this pull request as ready for review May 31, 2024 21:26
@Flame442
Copy link
Copy Markdown
Member

I think in cases where nobody is in the voice channel, it would make sense to allow someone not in the voice channel to disconnect.
Additionally, you are currently failing the style checks. Please format your PR with black -l 99 using the instructions in our CONTRIBUTING.MD file.

@BenCos17
Copy link
Copy Markdown
Contributor Author

I think in cases where nobody is in the voice channel, it would make sense to allow someone not in the voice channel to disconnect. Additionally, you are currently failing the style checks. Please format your PR with black -l 99 using the instructions in our CONTRIBUTING.MD file.

fixed the style stuff btw

@Flame442 Flame442 added the Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. label May 31, 2024
BenCos17 added 5 commits June 1, 2024 10:44
seeing if this will allow someone to disconnect without being in vc if no one is there
working on audio disconnect again -ben (update from upstream)
@BenCos17 BenCos17 marked this pull request as draft August 1, 2024 15:50
@BenCos17 BenCos17 marked this pull request as ready for review August 7, 2024 21:15
BenCos17 added a commit to JARVIS-discordbot/Red-DiscordBot-jarvis that referenced this pull request Aug 7, 2024
@BenCos17
Copy link
Copy Markdown
Contributor Author

And that should all work
I've tested it all on my red instance for the past while with no issues

@Flame442
Copy link
Copy Markdown
Member

I'm not certain if the current implementation needs to be so complicated. self._can_instaskip seems to be the utility method used by Audio to account for all of the kinds of permissions a user may need to take actions on the player. It would likely be better to use that method instead.

@BenCos17
Copy link
Copy Markdown
Contributor Author

I'm not certain if the current implementation needs to be so complicated. self._can_instaskip seems to be the utility method used by Audio to account for all of the kinds of permissions a user may need to take actions on the player. It would likely be better to use that method instead.

true
I'll have a look at that at some point then
thanks

@Jackenmen
Copy link
Copy Markdown
Member

Superseded by #6768

@Jackenmen Jackenmen closed this May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Cogs - Audio This is related to the Audio cog. Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Audio] disconnect command should check if the user is actually in the VC

3 participants