aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make __main__ template strings privateRapptz2021-08-221-10/+10
|
* Add explicit type annotation to version_info and reformatRapptz2021-08-221-6/+8
|
* Typehint async_context global variableRapptz2021-08-221-2/+2
|
* Make json conversion functions privateRapptz2021-08-225-17/+17
|
* Make global log variable in modules privateRapptz2021-08-2211-147/+147
|
* ResponseType type alias is privateRapptz2021-08-221-4/+4
|
* Add typing metadataRiley Shaw2021-08-223-0/+2
|
* Add type: ignore for StageInstance.channelStocker2021-08-211-1/+2
|
* Reformat shard.pyRapptz2021-08-211-10/+32
|
* Reformat state.pyRapptz2021-08-211-51/+86
|
* Don't clear views in READYRapptz2021-08-211-3/+5
|
* Typehint state.pyStocker2021-08-213-179/+237
|
* [commands] Make GroupMixin GenericJosh2021-08-211-10/+21
|
* Add missing typehints for Member propertiesArnav Jindal2021-08-211-0/+3
|
* Fix on_typing not dispatching for threadsRapptz2021-08-201-1/+1
|
* [commands] De-indent after hook callRapptz2021-08-201-1/+1
| | | | Close #7412
* Copy docs from Client.close() to Bot.close()Willy2021-08-201-0/+1
|
* Typehint shard.pyStocker2021-08-201-63/+77
|
* Re-define Member properties inferred from User to support type-checkingJosh2021-08-201-6/+8
|
* Typehint context_managers.pyStocker2021-08-201-10/+28
|
* Add a few typehints to opus.pyStocker2021-08-191-4/+18
|
* Fix missing typehint that causes an error for a type checkerStocker2021-08-191-1/+2
|
* Add Thread to the return type of Client.get_channelStocker2021-08-193-16/+21
| | | Also explains some type ignores.
* [commands] reset view when Optional argument encounters parsing errorSebastian Law2021-08-191-1/+8
|
* [commands][types] Type hint commands-extJosh2021-08-196-312/+636
|
* default to 0 instead of 15 for Guild.sticker_limitNadir Chowdhury2021-08-191-1/+1
|
* Use channel default auto archive durationJames Gayfer2021-08-182-7/+7
| | | | | | | | | Currently creating a new thread uses a default auto archive duration of 1440 minutes, or 1 day. Rather than prescribing our own default, we can use the default auto archive duration that is set on the channel. This ensures that newly created threads will respect the default auto archive duration as prescribed by the user.
* Fix some type hints in user.pyRapptz2021-08-181-5/+2
|
* Add Thread.members and Thread.fetch_membersRapptz2021-08-181-0/+32
|
* Remove deprecated TextChannel.active_threads for Guild versionRapptz2021-08-183-28/+35
| | | | This also fills in the ThreadMember data from the endpoint
* Partially type-hint state.pyRapptz2021-08-181-19/+25
| | | | | This is just work to get started. A more complete type hint will come later.
* Move explanation note for type ignore above the offending lineRapptz2021-08-181-1/+2
|
* Fix Template.source_guild typehintRapptz2021-08-181-7/+8
|
* Add missing typehints to template.pyStocker2021-08-181-15/+18
|
* flag_value should not be a generic classBryan Forbes2021-08-181-1/+1
| | | | | | | | | | | Since there is no generic information in `flag_value.__init__()`, `flag_value` descriptors get stored as `flag_value[<nothing>]` in mypy strict mode and then the `__get__` overloads never match. This leads to errors when using things like `permissions_instance.embed_links` since `<nothing>` never matches `Permissions`. The generic inheritance isn't needed at all since the type information we care about comes from the call site of `__get__` and not the instantiation of the descriptor.
* [commands] Typehinted errors.pyStocker2021-08-181-102/+117
|
* Fix documentation for Message.is_systemRapptz2021-08-181-3/+11
| | | | Also fixes some formatting
* Update Permissions classmethods to include thread/stage/stickerz03h2021-08-181-3/+11
|
* Fix Guild.fetch_channel not working for threadsla2021-08-182-5/+13
|
* Fix missing or broken versionadded in docstringsAkshuAgarwal2021-08-185-3/+26
| | | This also documents BadFlagArgument.flag
* Add other message types exclusions to Message.is_systemSYCKGit2021-08-181-1/+1
| | | | Message.is_system was checking if self.type is MessageType.default but now there are other MessageTypes that are not system messages
* [commands] Return removed cog in Bot.remove_cogthetimtoy2021-08-181-1/+8
| | | The method now returns the removed cog, if it exists.
* Type-hint user.pythetimtoy2021-08-181-34/+65
|
* Add interaction.data to docsMiolus2021-08-181-0/+2
|
* Typehint raw_models.py Stocker2021-08-182-45/+159
|
* Remove coverage note from the documentation and READMERapptz2021-08-153-3/+0
| | | | | | | | | A lot of people seem to point out this line as a gotcha when certain features haven't been released yet. It's been more of a pain-point than a marketing win since people seem to be unaware of the way this project is developed. Fix #7401
* Rename start_thread to create_thread for consistencyRapptz2021-08-122-16/+16
|
* Fix incorrect indentRapptz2021-08-111-1/+1
|
* Revert "Refactor Client.run to use asyncio.run"Rapptz2021-08-112-100/+103
| | | | This reverts commit 6e6c8a7b2810747222a938c7fe3e466c2994b23f.
* Refactor Client.run to use asyncio.runRapptz2021-08-102-103/+100
| | | | | | | | 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.