Lilly Rose Berner
2dbf14bb72
Separately delay ready event for each shard
3 years ago
Lilly Rose Berner
08844985cc
Fix Client.fetch_guilds not working correctly, increase default limit
3 years ago
Rapptz
987235d564
Only call async setup if the loop sentinel hasn't been changed
3 years ago
Rapptz
76cc2c2272
Require passing intents to Client and its subclasses
3 years ago
Puncher
18050aecd7
Fix broken code blocks in docstrings
3 years ago
jack1142
5ffa3e85de
Update comments after `# type: ignore` to be compatible with PEP 484
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
James Hilton-Balfe
8072e294a8
Fix type-o in the docstring for Client.fetch_guild
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
Abhinav Singh
f485f1b612
Fix a typo in docstrings of Client class
4 years ago
Chrovo
932efa1edc
Change a few parameters to be positional only
This makes parameters positional only in the methods
fetch_sticker, fetch_webhook, fetch_channel, fetch_user, fetch_widget,
fetch_stage_instance, fetch_guild, get_sticker, and get_channel.
4 years ago
pyxiis
2f2c39ed22
Add Client.status attribute
4 years ago
MrKomodoDragon
5ef37923de
Make getters in Client positional only
4 years ago
Josh
9727b56503
Fix references in docs
4 years ago
Rapptz
ea2d972666
Make global log variable in modules private
4 years ago
Stocker
f4d5fcc8f9
Add Thread to the return type of Client.get_channel
Also explains some type ignores.
4 years ago
AkshuAgarwal
6b6bcb92e6
Fix missing or broken versionadded in docstrings
This also documents BadFlagArgument.flag
4 years ago
Rapptz
08a4db3961
Revert "Refactor Client.run to use asyncio.run"
This reverts commit 6e6c8a7b28
.
4 years ago
Rapptz
6e6c8a7b28
Refactor Client.run to use asyncio.run
This also adds asynchronous context manager support to allow for
idiomatic asyncio usage for the lower-level counterpart. At first
I wanted to remove Client.run but I figured that a lot of beginners
would have been confused or not enjoyed the verbosity of the newer
approach of using async-with.
4 years ago
Rapptz
1279510194
Add support for PartialMessageable instances
This allows library users to send messages to channels without fetching
it first.
4 years ago