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
3 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
Aaron Hennessey
15eb3d2e5d
Remove afk parameter from change_presence
4 years ago
Rapptz
88d825a803
Allow use of orjson instead of json
The difference in speed seems negligible at start up, which is when
most time is taken for actually parsing JSON. I could potentially be
missing something but profiling didn't point to any discernable
difference.
4 years ago
Imayhaveborkedit
ac061c31fb
Fix default hook signature
Since the hook function can be both bound and unbound
the bound signature needs to accept an extra argument
4 years ago
Imayhaveborkedit
8e08bd6af2
Add vws message hook
4 years ago
Rapptz
81b259ab36
Fix sending arrays with nulls in them when changing presences
4 years ago
apple502j
dea92a69dc
Remove support for guild subscriptions
4 years ago
Rapptz
d85805ab6d
First pass at supporting v8 API
4 years ago
Rapptz
54288879e2
Remove userbot functionality
This has a lot of legacy and cruft so there may be some stuff I've
missed but this first pass is enough to get a clear separation.
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
Nadir Chowdhury
63ec23bac2
Code optimisations and refactoring via Sourcery
4 years ago
Riley Shaw
fafc3d9185
Fix ZeroDivisionError in DiscordVoiceWebSocket.average_latency
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Rapptz
5c868ed871
Fix SyntaxError from PR implementing presences in member querying
4 years ago
Nadir Chowdhury
59c11e71a2
Implement presences for `Guild.query_members`
4 years ago