dolfies
73f337d709
Raise the original error instead of a proxy in member list errors
3 years ago
dolfies
c4b6007979
Implement new connection capabilities
3 years ago
dolfies
6a3898eaad
Fix crash when receiving interactions without nonce ( fixes #311 )
3 years ago
dolfies
102648489d
Stop silencing GUILD_APPLICATION_COMMANDS_UPDATE unknown event warning
3 years ago
dolfies
2474c9aefd
Fix ClientUser state disappearing ( fixes #77 again)
3 years ago
dolfies
2c6bc72836
Make CaptchaHandler validation TypeError clearer
3 years ago
dolfies
3547be4a53
Parse session_type
3 years ago
dolfies
65d1efef25
Expose Client.country_code and Client.preferred_voice_regions
3 years ago
dolfies
c90e44a217
Bump capabilities
3 years ago
dolfies
a777327d8e
Implement Commands backend v2
3 years ago
dolfies
c46f24ca40
Modernize Relationship class
3 years ago
dolfies
51eb06353a
Make access_private_channel() consistent with the client
3 years ago
dolfies
e64d0e71dd
Fix call handling
3 years ago
dolfies
008f79adee
Rebase to latest upstream
3 years ago
dolfies
72a46a3ef1
Minor doc/typing nitpicks
3 years ago
dolfies
8eaa26d479
Various fixes (docs, events, enums, exports
3 years ago
dolfies
9976972baa
Dispatch connections_update
3 years ago
dolfies
50ff16ede6
Rebase to latest upstream
3 years ago
dolfies
29c2036bc8
Rebase to latest upstream
3 years ago
dolfies
073c855292
Fix member fetching bugs and context property bug
3 years ago
dolfies
3395417844
Improve typing across the board, remove old browser references
3 years ago
dolfies
5edcd7d64b
Implement Emoji/Sticker.fetch_guild (and run black)
3 years ago
dolfies
957a484306
Run black
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
Rapptz
9c61e10a55
Move all async object creation to a proper initialisation point
This should make it so no object is created with another loop
3 years ago
Rapptz
8d4f08a5e7
Fix AutoShardedClient to work with the new asyncio loop machinery
Fix #7675
3 years ago
Han Seung Min - 한승민
93af158b0c
Refactor loop code to allow usage of asyncio.run
3 years ago
Willy
f09f0ea8ca
Fix addition TypeError with Guild.member_count
3 years ago
z03h
3300f12dbb
Fix scheduled event dispatch arguments
3 years ago
I. Ahmad
0db7b22713
Fix archived threads not getting evicted
Fixes #7541
3 years ago
Rapptz
987e27dfce
Revert all Guild.chunk changes
This method should *not* return a list of members due to the way it is
used internally.
3 years ago
dolfies
0f2dda9dd4
Remove unnecessary list comprehension and logging
3 years ago
Rapptz
ac0e4fabb8
Fix type checker error in Guild.chunk
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
dolfies
a849b05d41
Parse PRESENCES_REPLACE
3 years ago
Rapptz
4c8b1f9abd
Remove unused imports
3 years ago
Rapptz
f7315573aa
Remove generic from Interaction and ConnectionState
This results in poor ergonomics due to the lack of default generics
for the common case. For most users this ends up in a degraded
experience since the type will resolve to Unknown rather than at the
very least a Client.
3 years ago
Rapptz
f435d160dd
Add Interaction.client property
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Rapptz
ae1aaac5a7
Add support for autocomplete
3 years ago
Rapptz
0d2db90028
Implement slash commands
3 years ago
Nadir Chowdhury
3c6279b947
Implement Guild Scheduled Events
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
285069de08
Fix types in guild.py
3 years ago
Rapptz
24b729ed0d
Fix up some type ignores in state.py
3 years ago
Nadir Chowdhury
3cf000d467
Type up gateway payloads
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
Josh
19c6687b55
Add support for Modal Interactions
3 years ago
Alex Nørgaard
2e5da07180
Fix unknown DMChannel in MessageReference.resolved.channel
Threads would cause the message reference to resolve to a DMChannel
3 years ago