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
Rapptz
940bdb988a
Revert "Move global user storage from WeakValueDictionary to dict"
This reverts commit cb2363f0fd
.
This lead to memory leaks due to insufficient tracking, assuming that
the members intent was enabled.
3 years ago
dolfies
fba0cc6119
Parse sessions key in READY
3 years ago
dolfies
4c4e9baa42
Actually fix thread handling for realsies
3 years ago
dolfies
627635cbc3
Fix thread events, add a missing thread field, fix reason not being sent when editing threads
3 years ago
dolfies
a86d42ce55
Fix interactions
3 years ago
dolfies
6420dfdc0f
fix client presences/sessions; add timeout capability; remove GuildIterator; add proper team/application support
3 years ago
dolfies
8fff4b01f2
Fix Interaction.name for own interactions
3 years ago
dolfies
1a1b9cf15a
Implement connections, add fetch_sticker_pack, fix some small issues
3 years ago
dolfies
749de62991
Move Interaction to its own file
3 years ago
dolfies
397bca6b14
Improve interaction object, implement message.interaction, implement Attachment.description
3 years ago
dolfies
13b6ab07fd
Further improve thread events
3 years ago
dolfies
8ed7091d9d
Improve thread event parsing and add DM closing
3 years ago
dolfies
d20b444bfb
Preliminary thread support
3 years ago
dolfies
6b0b510818
Handle interaction events
4 years ago