Mysty
ec9fd57254
Add support for AEAD XChaCha20 Poly1305 encryption mode
6 months ago
Sebastian Law
0362b2fd4e
[docs] fix gateway payload hyperlinks
12 months ago
Imayhaveborkedit
b8c29b0790
More voice fixes
* More voice fixes
* Start socket reader paused and wait for socket creation
* Fix issues handling 4014 closures
Fixes code not handling disconnects from discord's end properly. The
4014 code is shared between being disconnected and moved, so it has to
account for the uncertainty. Also properly stops the voice_client audio
player when disconnecting.
* Fix sending (dropped) silence packets when not connected
12 months ago
Mysty
9810cb9936
Add warning to VoiceProtocol.on_voice_state_update
1 year ago
Imayhaveborkedit
e1aa6cc264
Fix bad voice state when moving to a voice channel without permissions
2 years ago
Imayhaveborkedit
44284ae107
Rewrite voice connection internals
2 years ago
Imayhaveborkedit
8b8ce55378
Add encoder params to VoiceClient.play
2 years ago
Imayhaveborkedit
cdc220fa4c
Fix voice websocket not being closed before being replaced
2 years ago
Jakub Kuczys
b5dc9e54a0
Change VoiceProtocol user callbacks to be pos-only
3 years ago
Rapptz
3802780f77
Change a lot of logging INFO calls to be less verbose
Some of the logs were only useful for debug scenarios, so they have
been downgraded to DEBUG. Others were in INFO but supposed to be in
WARNING so those were upgraded.
3 years ago
Harshal Laheri
20d3871290
Add return type hint for some functions
3 years ago
apple502j
b95db674c0
Fix some typos
3 years ago
mniip
1be36c9c3e
Change View, Modal, and AudioPlayer to use logger instead of stderr
3 years ago
Rapptz
4c74523794
Fix versionadded docstrings in voice connect methods
3 years ago
Rapptz
cf031f71b9
Add a new extlink for discord documentation
3 years ago
Vaskel
89b9f1616c
Add self_deaf and self_mute params to voice connect methods
3 years ago
jack1142
5ffa3e85de
Update comments after `# type: ignore` to be compatible with PEP 484
3 years ago
Rapptz
1192d842e1
Fix some type checker errors and remove some type ignores
Caught from an upgraded Pyright
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Han Seung Min - 한승민
93af158b0c
Refactor loop code to allow usage of asyncio.run
3 years ago
Rapptz
0c690bc949
Fix audio not sending
Fixes #7531
3 years ago
Josh
a315786869
Handle type-errors in upcoming pyright release
3 years ago
Rapptz
3e90664cf9
Fix signature for VoiceClient
3 years ago
Josh
c8064ba6f2
Type-hint gateway
3 years ago
Josh
70b577e94b
Fix typing in voice related files
3 years ago
Rapptz
88b520b5ab
Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
3 years ago
Rapptz
ea2d972666
Make global log variable in modules private
4 years ago
Josh
f40f80c0dc
Fix typo in voice_client.py
4 years ago
scrazzz
3c5c5fc274
Update documentation in voice_client.py
4 years ago
Josh
5acea453cc
Type-hint voice_client / player
4 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <[email protected] >
4 years ago
Cryptex
8d74fad474
Update lavalink's repo url
4 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Rapptz
52865dfa99
Clear the connected flag when potentially reconnecting the player
Fix #5953
4 years ago
Rapptz
b76b5b42c0
Fix attribute error during rapid disconnects in VoiceClient.
Fix #6039
4 years ago
Rapptz
21ed9f61d2
Fix disconnect when trying to move to another voice channel.
Not overly proud of this implementation but this allows the library
to differentiate between a 4014 that means "move to another channel" or
"move nowhere". Sometimes the VOICE_STATE_UPDATE comes before the
actual websocket disconnect so special care had to be taken in that
case.
Fix #5904
5 years ago
Rapptz
9036b9651b
Properly handle disconnects in voice when force disconnected
5 years ago
Josh
9830e0ed8a
Fix issues with VoiceProtocol docstrsings.
5 years ago
Rapptz
e3922e24d9
Correct some protocol errors in v4 of voice gateway
5 years ago
Rapptz
0b93fa3a82
Implement VoiceProtocol lower level hooks.
This allows changing the connect flow and taking control of it without
relying on internal events or tricks.
5 years ago
Rapptz
250f29989b
Be defensive in case Discord breaks something with WS URLs again
5 years ago
Rapptz
a9824ffabf
Fix endpoint strings with :443 instead of :80
Fix #5191
Close #5188
5 years ago
Tsumiki
5cbbbca193
Add versionadded to VoiceClient latency and average_latency
5 years ago
Jeffrey
4078d64520
Fix reconnecting loop due to failed handshake on region change
5 years ago
매리
ddfed5a610
Change _handshaking variable when handshake terminate
5 years ago
Fwf
fa34d357a1
Added VoiceClient.latency and VoiceClient.average_latency
This also implements the heartbeating a bit more consistent to the
official Discord client.
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago