Imayhaveborkedit
c1d6b47f38
Fix move_to related voice state bugs
1 year ago
Imayhaveborkedit
2856853c16
Rewrite voice connection internals
2 years ago
dolfies
51d43a158f
Rework member chunking and events ( #662 )
1 year ago
dolfies
0847b02ae1
Overhaul presence syncing and afk/idle tracking ( #663 )
* Overhaul presence syncing and afk/idle tracking
* Log initial presence as well
* Fix duplicate custom status checking
1 year ago
dolfies
8e8d0ff12a
Implement Search Recent Members OP
2 years ago
Ruairi
67b69e732c
Implement experiments ( #520 )
* start on experiments
Signed-off-by: Ruairi <[email protected] >
* Proper experiment types
* Small fixes
* add experiments to client
Signed-off-by: Ruairi <[email protected] >
* format using black
Signed-off-by: Ruairi <[email protected] >
* correct errors in filters
Signed-off-by: Ruairi <[email protected] >
* add suggested changes
Signed-off-by: Ruairi <[email protected] >
* oopsies
Signed-off-by: Ruairi <[email protected] >
* fix some errors hopefully
Signed-off-by: Ruairi <[email protected] >
* fix even more type errors
Signed-off-by: Ruairi <[email protected] >
* moved to utils
Signed-off-by: Ruairi <[email protected] >
* Fix overloads
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* add suggested changes
Signed-off-by: Ruairi <[email protected] >
* fixinator
Signed-off-by: Ruairi <[email protected] >
* properly cast
Signed-off-by: Ruairi <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/client.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/http.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/utils.py
Co-authored-by: dolfies <[email protected] >
* fix type error
Signed-off-by: Ruairi <[email protected] >
* rename murmurhash32
Signed-off-by: Ruairi <[email protected] >
* fix!: apply suggestions
Signed-off-by: Ruairi <[email protected] >
* fix quotes
Signed-off-by: Ruairi <[email protected] >
* big fixesd
* logic fixes and simplification
* add mmh3 to optional reqs
* reqs my beloved
* documentation
* Proper filters
* Export experiment classes
* Fix Metadata object parsing
* More low-level method warnings
* Fix and improve performance of ExperimentOverride
* more positional-only markers
* fix small isues
Signed-off-by: Ruairi <[email protected] >
* fix formatting
Signed-off-by: Ruairi <[email protected] >
* put mmh3 shit without type checker and shit idk
* Remove str(exp)
---------
Signed-off-by: Ruairi <[email protected] >
Co-authored-by: dolfies <[email protected] >
2 years ago
dolfies
2da78bf2a6
Implement new capabilities, PASSIVE_UPDATE_V1, and add last_pin_timestamp to channels
2 years ago
dolfies
72132efb78
Fix more issues relating to previous upstream pull
2 years ago
dolfies
8a1a3ffcce
Fix issues with previous upstream commits
2 years ago
Andrew Morgan
b9471513ea
Include ssrc parameter when sending a SPEAKING payload
As it is a required parameter.
Don't unnecessarily send a second SPEAKING payload after
connecting to voice
We do need to send a SPEAKING payload in order to set our SSRC value
after connecting to voice, yet that can be with a `state` of 0
(SpeakingState.none).
There is no reason to send 2 packets; one marking ourselves as
speaking, and then not speaking.
2 years ago
Florian Spieß
916e34280f
Fix udp discovery not using 74 byte layout
2 years ago
Rapptz
efab542aba
Parse gateway URL as an actual URL using yarl
Discord has changed the URL format to make it infeasible to edit it
using basic string interpolation.
3 years ago
Rapptz
7a199fe567
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
Rapptz
674845479d
Add support for resume_gateway_url
3 years ago
Bryan Forbes
b9795979ac
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores
3 years ago
dolfies
ba6e15ed61
Implement protobuf settings ( #476 )
* Initial implementation
* Internal and documentation changes
* Proto editing and update events
* Edit overloads and bugfixes
* Fix missing defaults in two overloads
* More fixers
* Black pass
* docs! (almost)
* Fix incorrect settings accessing
* Support setting settings versions
* Fix docs
* Update timezone_offset documentation
2 years ago
dolfies
edf083bd1e
Implement relationship presence and gateway session management
2 years ago
dolfies
cbc5d706c2
Implement message requests
2 years ago
dolfies
c90e44a217
Bump capabilities
3 years ago
dolfies
cfe58eeb1f
Revert all voice receive changes
This won't be making its way into 2.0 and needs a ton of work. Now lint passes!
3 years ago
dolfies
5ff7002424
Remove unnecessary imports
3 years ago
dolfies
29c2036bc8
Rebase to latest upstream
3 years ago
dolfies
388863e521
Implement joining guilds from id & lurking, bug fixes, doc fixes
3 years ago
dolfies
5edcd7d64b
Implement Emoji/Sticker.fetch_guild (and run black)
3 years ago
dolfies
957a484306
Run black
3 years ago
Rapptz
6d75d2e937
Fix unnecessary type ignores in gateway
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
Rapptz
58ad146a4e
Remove window re-assignment in gateway rate limiter
This was a hold over from the old cooldown implementation.
3 years ago
Rapptz
0c690bc949
Fix audio not sending
Fixes #7531
3 years ago
dolfies
571a50cda5
Implement guild member support (and fix a couple other bugs) ( #224 )
* Initial guild member support
* Add back is_guild_evicted() check, fix some documentation/typing, actually use count
* Better error handling
* Fix predicate and chunking on small guilds
* Silence asyncio.CancelledErrors when bot is stopped
* Properly filter events, assert that assert_guild_presence_count() works
* Working events!!!!! (also a fix for sometimes crashing when joining a guild)
* Uniform timeouts
3 years ago
Predä
32f131566f
Update gateway version docstring in DiscordWebSocket
3 years ago
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
3 years ago
Rapptz
8d52ddaff6
Fix remaining type errors in main package
This doesn't fix the type errors in the ext packages though.
3 years ago
Josh
c8064ba6f2
Type-hint gateway
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
dolfies
c375415038
Send voice state update at startup
3 years ago
dolfies
6420dfdc0f
fix client presences/sessions; add timeout capability; remove GuildIterator; add proper team/application support
3 years ago
dolfies
95ed42669d
Implement application commands
3 years ago
dolfies
8ed7091d9d
Improve thread event parsing and add DM closing
3 years ago
dolfies
7b11d8c256
Get it starting
4 years ago
dolfies
9b2b32d2c3
Migrate voice redesign
4 years ago
dolfies
2e102c9618
Fix logging, re-add afk parameter
4 years ago
dolfies
3429980d0c
Migrate
4 years ago
dolfies
9c5e4882ef
Initial de-botting
4 years ago
Rapptz
78598d59d7
Change on_socket_raw_receive to dispatch right before JSON conversion
4 years ago
Rapptz
4a72201617
Make json conversion functions private
4 years ago
Rapptz
ea2d972666
Make global log variable in modules private
4 years ago
Rapptz
035d110837
Fix debug event toggle not triggering for raw receive
4 years ago
Rapptz
b640493300
Add enable_debug_events parameter to enable expensive debug events
This should allow less dispatching during heavy gateway event streams.
4 years ago
Rapptz
e2250d402e
Add on_socket_event_type event
4 years ago