dolfies
7067d1f4de
More documentation fixes
3 years ago
dolfies
346f447da6
Fix typing issues, make ClientUser relationship properties return relationships
3 years ago
dolfies
388863e521
Implement joining guilds from id & lurking, bug fixes, doc fixes
3 years ago
dolfies
957a484306
Run black
3 years ago
Bryan Forbes
062f4d6f87
Change some methods to use positional-only marker
Co-authored-by: Danny <[email protected] >
3 years ago
will
13d19dc5ce
Fix typo in http_trace parameter documentation
3 years ago
Rapptz
77ec49782a
Add http_trace option in Client to trace the library's HTTP requests
3 years ago
Rapptz
f5341a1cfa
Document cases where setup_hook can deadlock rather than raising
3 years ago
apple502j
3e77a7b29e
Forbid wait_until_ready inside setup_hook
3 years ago
Rapptz
c77bbc4dcf
Move with_counts parameter documentation where it belongs
3 years ago
Rapptz
7c0a9e901d
Fully initialise asyncio state in __aenter__
3 years ago
Rapptz
575eacb1bf
Change loop sentinel error to not use a tuple
This was an unintentional error
3 years ago
Rapptz
2bf612cd67
Fix Client.close erroring if done before proper async initialisation
3 years ago
Rapptz
9b77331603
Change loop sentinel to provide a more descriptive error message
This way people don't think it's a bug. I imagine some people won't
read it, but at least when you point it out they might get it.
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
Rapptz
c02a3c0bb2
Add asynchronous context manager support for Client
3 years ago
Han Seung Min - 한승민
93af158b0c
Refactor loop code to allow usage of asyncio.run
3 years ago
Gnome!
68b7ee6b99
Add Client.setup_hook
3 years ago
chromacoat dreamkey
095aaa9ad1
Change wording of InvalidArgument removal in docs
3 years ago
Sebastian Law
483ffeacd4
Inject state into PartialEmoji in Activity
3 years ago
daima3629
0ea6fdac5a
Fix typo in Client.get_stage_instance
3 years ago
dolfies
bfec72eb58
Add application-related methods, fix a couple typos
3 years ago
James Hilton-Balfe
8072e294a8
Fix type-o in the docstring for Client.fetch_guild
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
JDJG Inc. Official
e69428a841
Add with_counts support for Client.fetch_guild
Co-authored-by: Stocker <[email protected] >
Co-authored-by: Danny <[email protected] >
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
Rapptz
d44328d3ea
Remove region from Guild.__slots__
This also fixes up some docstrings
3 years ago
Nadir Chowdhury
3c6279b947
Implement Guild Scheduled Events
3 years ago
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
3 years ago
Rapptz
0eb2f32399
Remove VoiceRegion enum and Guild.region attribute
This has been marked deprecated by Discord and it was more or less
usually out of date due to the pace they added them anyway.
3 years ago
Josh
39c5a4fdc3
Fix type-errors in commands extension
3 years ago
Rapptz
51b79411e3
Fix and document type ignores in client
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
4dbe1af32f
Update sphinx and fix documentation issues
3 years ago
Kaylynn Morgan
588cda0996
Refactor AsyncIter to use 3.6+ asynchronous generators
3 years ago
jack1142
dc19c6c7d5
Add positional-only arguments in more places
3 years ago
dolfies
6420dfdc0f
fix client presences/sessions; add timeout capability; remove GuildIterator; add proper team/application support
3 years ago
dolfies
1a1b9cf15a
Implement connections, add fetch_sticker_pack, fix some small issues
3 years ago
dolfies
89e9f92789
Redesign profiles, remove bot-only method, fix repr(Note)
3 years ago
dolfies
8c45b828d4
Prevent fetching mutual friends for bots (client does this)
3 years ago
dolfies
b96d31aedc
Add a few things to docs
4 years ago
dolfies
7b11d8c256
Get it starting
4 years ago
dolfies
22dcc8e352
Minor docstring consistency nitpick
4 years ago
dolfies
3e4ad5d651
Migrate user.py, refactor a few things
4 years ago
dolfies
bee07329d1
Fix a few typos
4 years ago
dolfies
3429980d0c
Migrate
4 years ago
dolfies
9c5e4882ef
Initial de-botting
4 years ago