-
-
Notifications
You must be signed in to change notification settings - Fork 484
refactor(voice): Rewrite Voice Internals & DAVE Support (recieve) #2873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DA-344
wants to merge
80
commits into
Pycord-Development:master
Choose a base branch
from
DA-344:feat/voice-rewrite-and-fixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+5,174
−1,817
Open
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
a98025a
first commit on voice fixes
DA-344 0ea2077
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 56caff5
things
DA-344 b27b438
merge upstream
DA-344 098a280
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8a6ae39
finish voice things, start voice-recv things
DA-344 f231d72
missing imports
DA-344 24d2db0
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 63b4d85
protocols
DA-344 d7be710
Merge branch 'feat/voice-rewrite-and-fixes' of https://github.com/DA-…
DA-344 fe88ee8
recv
DA-344 726c8f9
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fbab980
fix voice connection, now fix voice recording :sob:
DA-344 266591d
Merge branch 'feat/voice-rewrite-and-fixes' of https://github.com/DA-…
DA-344 870d135
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 73d5c6d
actually i did this for logging
DA-344 109a06c
merge upstream
DA-344 8f891a3
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] eaa3d77
use utils._get_as_snowflake and remove old code
DA-344 1a40295
Merge branch 'feat/voice-rewrite-and-fixes' of https://github.com/DA-…
DA-344 def162d
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c81adf5
remove fmt:off references
DA-344 d5bae0d
Merge branch 'feat/voice-rewrite-and-fixes' of https://github.com/DA-…
DA-344 88175b6
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 753e11b
add voice to the packages
DA-344 51858b9
keep GuildVoiceState alias to VoiceState
DA-344 b414b5f
fix type annotation
DA-344 9030478
voice recv things
DA-344 0b7c147
refactor voice recv logic
DA-344 83036da
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4277b49
document default handlers
DA-344 46978ec
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6c124bf
fix await outside async
DA-344 b34c254
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 18ded59
name error
DA-344 6f03ace
fix dispatchs not working ig
DA-344 94d3082
fix voice recv things fuck
DA-344 fe8e602
try to fix things
DA-344 212ce1d
voice recv is no longer funny
DA-344 628d5f6
merge master
DA-344 109d27c
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a0f2a99
Merge branch 'master' of https://github.com/Pycord-Development/pycord…
DA-344 8304dba
add first pass to implement dave
DA-344 74d6590
yay voice recv
DA-344 60658bb
more voice recv
DA-344 d44f192
docs actions
DA-344 135550f
errors yay
DA-344 a324844
okay this needs fixing
DA-344 805d055
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a49cddf
voice changes
DA-344 bcc841d
split voice connect from recv
DA-344 8c3ce89
some type fixes
DA-344 58bf955
remove unused imports
DA-344 c4a7cd7
merge master
DA-344 cd8f108
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6897f44
some more type fixes and warning for recv
DA-344 78e44c9
chore: merge upstream
DA-344 740d822
chore: merge master
DA-344 be86c86
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4f6040f
fix sinks docs
DA-344 a9e679c
Merge branch 'feat/voice-rewrite-and-fixes' of https://github.com/DA-…
DA-344 27da98c
fix docs
DA-344 bf18aba
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5c98cdb
idk what happened here
DA-344 a55b01c
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e9ec992
maybe fix circular
DA-344 b50761e
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 54db8bd
disliking docs atp
DA-344 8f99e4e
add voice to docs requirements
DA-344 23e474f
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fe6e38c
add voice to docs reqs
DA-344 b4f9479
add voice to tests
DA-344 2189888
type fixes
DA-344 8ee5aec
remove undefined names from __all__
DA-344 48e23f2
add davey try/except imports and warn on init
DA-344 5d1244e
emit davey warning on discord.Client
DA-344 1ee4a1e
fix tox tests
DA-344 0f59da6
Merge branch 'master' into feat/voice-rewrite-and-fixes
DA-344 68e0eeb
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9c5323c
fix VoiceClient & VoiceProtocol docs
DA-344 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,3 +17,4 @@ python: | |
| path: . | ||
| extra_requirements: | ||
| - docs | ||
| - voice | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| """ | ||
| The MIT License (MIT) | ||
|
|
||
| Copyright (c) 2015-2021 Rapptz | ||
| Copyright (c) 2021-present Pycord Development | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a | ||
| copy of this software and associated documentation files (the "Software"), | ||
| to deal in the Software without restriction, including without limitation | ||
| the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
| and/or sell copies of the Software, and to permit persons to whom the | ||
| Software is furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in | ||
| all copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
| OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
| DEALINGS IN THE SOFTWARE. | ||
| """ | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from typing import TYPE_CHECKING | ||
|
|
||
| from .utils import deprecated | ||
|
|
||
| """ | ||
| since discord.voice raises an error when importing it without having the | ||
| required package (ie davey) installed, we can't import it in __init__ because | ||
| that would break the whole library, that is why this file is here. | ||
|
|
||
| the error would still be raised, but at least here we have more freedom on how we are typing it | ||
| """ | ||
|
|
||
| __all__ = ("VoiceProtocol", "VoiceClient") | ||
|
|
||
|
|
||
| if TYPE_CHECKING: | ||
| from typing_extensions import deprecated | ||
|
|
||
| from discord.voice import VoiceClient as VoiceClientC | ||
| from discord.voice import VoiceProtocol as VoiceProtocolC | ||
|
|
||
| @deprecated( | ||
| "discord.VoiceClient is deprecated in favour " | ||
| "of discord.voice.VoiceClient since 2.7 and " | ||
| "will be removed in 3.0", | ||
| ) | ||
| def VoiceClient(client, channel) -> VoiceClientC: ... | ||
|
|
||
| @deprecated( | ||
| "discord.VoiceProtocol is deprecated in favour " | ||
| "of discord.voice.VoiceProtocol since 2.7 and " | ||
| "will be removed in 3.0", | ||
| ) | ||
| def VoiceProtocol(client, channel) -> VoiceProtocolC: ... | ||
|
|
||
| else: | ||
|
|
||
| @deprecated("discord.VoiceClient", "discord.voice.VoiceClient", "2.7", "3.0") | ||
| def VoiceClient(client, channel): | ||
| from discord.voice import VoiceClient as VoiceClientC | ||
|
|
||
| return VoiceClientC(client, channel) | ||
|
|
||
| @deprecated("discord.VoiceProtocol", "discord.voice.VoiceProtocol", "2.7", "3.0") | ||
| def VoiceProtocol(client, channel): | ||
| from discord.voice import VoiceProtocol as VoiceProtocolC | ||
|
|
||
| return VoiceProtocolC(client, channel) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this could just import inside the method. Would be clearer imo ? Wdyt