aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Clarify StageInstance.discoverable_disabled documentationDavid2021-08-101-1/+1
|
* Add missing ] in docs for StageInstance.channelMrKomodoDragon2021-08-101-1/+1
|
* Undo coercion of partial DMChannel to PartialMessageableRapptz2021-08-102-5/+21
|
* Remove unused log lines in HTTPClientRapptz2021-08-101-4/+0
|
* Interaction.channel can be a PartialMessageable rather than ObjectRapptz2021-08-101-8/+17
| | | | This allows it to work just fine in DMs
* Add support for PartialMessageable instancesRapptz2021-08-106-30/+125
| | | | | This allows library users to send messages to channels without fetching it first.
* Fill in ConnectionState.user via HTTPClient.static_loginGnome!2021-08-101-3/+4
|
* [types] Add Application Command Type payloadsJosh2021-08-101-2/+14
|
* [docs] Fix typomonoue2021-08-101-6/+6
|
* [commands] Document / type-hint cooldownJosh2021-08-104-59/+142
|
* [commands] Document GuildNotFoundAaron Hennessey2021-08-101-0/+1
|
* [commands] Add GuildStickerConverterz03h2021-08-103-0/+65
|
* Add TextChannel.default_auto_archive_durationRapptz2021-08-023-1/+13
|
* Fallback to None message_id searches in View dispatchRapptz2021-08-011-1/+3
| | | | | | | Not all persistent views have an associated message_id attached to them. Fix #7319
* Fix debug event toggle not triggering for raw receiveRapptz2021-08-011-3/+3
|
* Remove unused variable in viewRapptz2021-08-011-1/+0
|
* Change View dispatch mechanism to be keyed by message_id as wellRapptz2021-07-311-5/+6
| | | | | | | | If different persistent view instances are used within different message_ids their callbacks will get called without differentiating between them, leading to potential issues such as 404 errors. This change makes it so N views with custom IDs bound to N message_ids will no longer conflict with one another.
* Fix typo in TextChannel.start_threadRapptz2021-07-311-1/+1
|
* Add enable_debug_events parameter to enable expensive debug eventsRapptz2021-07-313-3/+30
| | | | This should allow less dispatching during heavy gateway event streams.