Rapptz
dd7d4b8e7f
Use a thread values view when constructing TextChannel.threads
Avoids an accidental O(n^2) situation.
4 years ago
Rapptz
2d8f299b6b
Use MISSING instead of None for HelpCommand.context
It's basically just late-init
4 years ago
Rapptz
3382d2e9e8
Update documentation on select limits
4 years ago
Rapptz
539577a2dd
Bring back ParamSpec in utils
4 years ago
Rapptz
4f8e67998a
Fix copy_doc typing to not error due to overloaded ParamSpec
4 years ago
Rapptz
848d752388
Change User.avatar to be Optional[Asset] instead of Asset
This change was needed to allow users to more easily check if an
uploaded avatar was set using `if user.avatar:` rather than the
admittedly clunky `if user.avatar != user.default_avatar.
The old behaviour with a fallback is still useful for actual display
purposes, so it has been moved over to the new `User.display_avatar`
attribute. This also has symmetry with the newly added
`Member.display_avatar` attribute.
4 years ago
Rapptz
78598d59d7
Change on_socket_raw_receive to dispatch right before JSON conversion
4 years ago
Rapptz
ef79305961
Exclude private functions from VoiceClient
4 years ago
Ryan
c6a6c6af85
Add Colour.brand_green and Colour.brand_red
4 years ago
Rapptz
9a61a5a063
Typehint Colour.__init__ parameter
4 years ago
Rapptz
565b41b0b2
Fix Embed.from_dict typing being too strict for a public function
The Embed TypedDict is not publicly accessible so would always lead
to type errors upon usage.
4 years ago
Sebastian Law
835432d161
Allow enums to be compared
4 years ago
Imayhaveborkedit
f586f4dfbd
Clarify connect() requires Intents.voice_states
4 years ago
Rapptz
769db38401
Fix typing error in sticker edit
4 years ago
Rapptz
c82739a3be
Fix some typings in HTTPClient to not take strict payload types
4 years ago
Rapptz
8306b9f6af
Add type hint for suppress parameter
4 years ago
Rapptz
490bbffc93
Remove in-place edits and return fresh instances instead
Fixes #4098
4 years ago
Rapptz
9d4fa0341e
Fix typing of move role position payload parameter
4 years ago
Rapptz
cff9ca0288
Fix typings for member HTTP methods
4 years ago
Rapptz
9dd86bbcb3
Add type hints to AsyncWebhookAdapter methods
4 years ago
Rapptz
8bbb8f6db9
Use getattr for default_auto_archive_duration in Message.create_thread
Some channel types do not have this attribute so a fallback is
necessary to prevent the attribute access from erroring.
4 years ago
Stocker
d8b06ca7f2
Fix message.py typehints
4 years ago
Imayhaveborkedit
3561ce9d5a
Fix FFmpeg based audiosource input piping
Due to an oversight that has existed since the very beginning, the pipe
argument has been broken since there was nothing to actually write
the data to the process's stdin. Now there is.
Also josh made me add typings blegh
4 years ago
Stocker
ae01a96bef
Add missing type: ignore and missing typehint to channel.py
4 years ago
MrKomodoDragon
5ef37923de
Make getters in Client positional only
4 years ago
James Hilton-Balfe
61abb43b69
Fix type hints for decorators in utils
4 years ago
MrKomodoDragon
73f953eac5
Add missing return type to utils.oauth_url
4 years ago
Stocker
400936df69
Fix type for content param in HTTPClient.send_message
4 years ago
Stocker
cdf46127ae
Added type: ignores where needed to activity.py
4 years ago
apple502j
851dfc3c75
Fix permissions.py typing
4 years ago
Rapptz
b8898c7788
Fix user.py typings and reformat file
4 years ago
Rapptz
d17551f51f
Fix typing for private channel by user lookup
4 years ago
Rapptz
4a6670c062
Add missing typehint for PermissionOverwrite.pair
Technically inferred but better to be explicit
4 years ago
Rapptz
d7a4230007
Fix Member.guild_avatar docstring
4 years ago
Rapptz
2e52059555
[types] Add avatar to Member typings
4 years ago
Rapptz
49cf959784
Fix Member._avatar not updating in member update events
4 years ago
JustAnyone
91652e3b60
Add per-guild member avatar support
Fix #7054
4 years ago
apple502j
9db8698748
Typehint opus.py
4 years ago
Josh
9727b56503
Fix references in docs
4 years ago
apple502j
e46d974c8a
Typehint oggparse.py
4 years ago
Josh
d09993d7e7
Remove created_at from Snowflake Protocol
4 years ago
Rapptz
69f578abdc
Fix webhook typings and use PartialMessageable instead of Object
4 years ago
Rapptz
1b5c206279
Fix broken rename from pyright
4 years ago
Rapptz
d2dd31de63
Make __main__ template strings private
4 years ago
Rapptz
d0c295b595
Add explicit type annotation to version_info and reformat
4 years ago
Rapptz
e1e3e298b5
Typehint async_context global variable
4 years ago
Rapptz
4a72201617
Make json conversion functions private
4 years ago
Rapptz
ea2d972666
Make global log variable in modules private
4 years ago
Rapptz
6268cad402
ResponseType type alias is private
4 years ago
Riley Shaw
55f79ed096
Add typing metadata
4 years ago