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
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
Gnome!
4fca699810
Fill in ConnectionState.user via HTTPClient.static_login
4 years ago
Josh
1c63816cc0
[commands] Document / type-hint cooldown
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
6beef898c6
Rename instances of nitro to premium
4 years ago
Nadir Chowdhury
60d82cf908
implement guild stickers
4 years ago
Aaron Hennessey
15eb3d2e5d
Remove afk parameter from change_presence
4 years ago
Rapptz
750ba88f2c
Fix typing errors with Client
4 years ago
Alex Nørgaard
d1dc41ec2f
Fix Client.fetch_channel not returning Thread
4 years ago