-
-
Notifications
You must be signed in to change notification settings - Fork 478
fix(voice): Voice internals rewrite to fix things #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
Draft
DA-344
wants to merge
49
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.
Draft
Changes from all commits
Commits
Show all changes
49 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] 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| """ | ||
| 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 VoiceClientC, 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 | ||
|
|
||
| return VoiceClient(client, channel) | ||
|
|
||
| @deprecated("discord.VoiceProtocol", "discord.voice.VoiceProtocol", "2.7", "3.0") | ||
| def VoiceProtocol(client, channel): | ||
| from discord.voice import VoiceProtocol | ||
|
|
||
| return VoiceProtocol(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.
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.
Uh oh!
There was an error while loading. Please reload this page.