fix for audio disconnect command not checking perms #6385

Closed
BenCos17 wants to merge 23 commits from V3/develop into V3/develop
BenCos17 commented 2024-05-31 23:25:40 +02:00 (Migrated from github.com)

Description of the changes

fixes #6365

Have the changes in this PR been tested?

Yes

### Description of the changes fixes #6365 ### Have the changes in this PR been tested? <!-- Choose one (remove the line that doesn't apply): --> Yes <!-- If the question doesn't apply (for example, it's not a code change), choose Yes. Please respond to this question truthfully. We do not delay nor reject PRs based on the answer to this question but it allows to better review this PR. -->
aikaterna (Migrated from github.com) reviewed 2024-05-31 23:25:40 +02:00
PredaaA (Migrated from github.com) reviewed 2024-05-31 23:25:40 +02:00
Flame442 commented 2024-05-31 23:38:00 +02:00 (Migrated from github.com)

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.

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](https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/CONTRIBUTING.md#43-style) file.
BenCos17 commented 2024-05-31 23:56:29 +02:00 (Migrated from github.com)

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

> 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](https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/CONTRIBUTING.md?rgh-link-date=2024-05-31T21%3A38%3A00Z#43-style) file. fixed the style stuff btw
BenCos17 commented 2024-08-10 20:04:39 +02:00 (Migrated from github.com)

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

And that should all work I've tested it all on my red instance for the past while with no issues
Flame442 commented 2024-11-24 20:09:42 +01:00 (Migrated from github.com)

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.

I'm not certain if the current implementation needs to be so complicated. [`self._can_instaskip`](https://github.com/Cog-Creators/Red-DiscordBot/blob/33e0eac741955ce5b7e89d9b8f2f2712727af770/redbot/cogs/audio/core/utilities/player.py#L83) 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 commented 2024-11-24 22:30:05 +01:00 (Migrated from github.com)

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

> I'm not certain if the current implementation needs to be so complicated. [`self._can_instaskip`](https://github.com/Cog-Creators/Red-DiscordBot/blob/33e0eac741955ce5b7e89d9b8f2f2712727af770/redbot/cogs/audio/core/utilities/player.py#L83) 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 commented 2026-05-21 02:08:09 +02:00 (Migrated from github.com)

Superseded by #6768

Superseded by #6768

Pull request closed

Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!6385
No description provided.