aboutsummaryrefslogtreecommitdiff
path: root/discord
Commit message (Collapse)AuthorAgeFilesLines
* [commands] Fix repr for GreedyJosh2021-04-101-0/+4
|
* [commands] Refactor typing evaluation to not use get_type_hintsRapptz2021-04-101-58/+103
| | | | | | | | | | | | | | | | get_type_hints had a few issues: 1. It would convert = None default parameters to Optional 2. It would not allow values as type annotations 3. It would not implicitly convert some string literals as ForwardRef In Python 3.9 `list['Foo']` does not convert into `list[ForwardRef('Foo')]` even though `typing.List` does this behaviour. In order to streamline it, evaluation had to be rewritten manually to support our usecases. This patch also flattens nested typing.Literal which was not done until Python 3.9.2.
* [commands] Remove legacy ExtensionNotFound.original attributeRapptz2021-04-101-4/+1
|
* Fix Intents resolution in the docsRapptz2021-04-101-1/+1
|
* [commands] Minimise code duplication in channel converters Nadir Chowdhury2021-04-101-117/+23
|
* Added discord.StageChannel in documentationTheOneMusic2021-04-101-0/+1
|
* [commands] Make `commands.Greedy` a `typing.Generic`James2021-04-102-23/+95
|
* [commands] Provide a dynamic cooldown system Dan Hess2021-04-102-19/+81
|
* Add missing future annotations importRapptz2021-04-101-0/+2
|
* Add typings for invites, templates, and bans Nadir Chowdhury2021-04-107-38/+185
|
* Add typings for audit logs, integrations, and webhooks Nadir Chowdhury2021-04-108-54/+388
|
* [commands]Add typing.Literal converterSigmath Bits2021-04-102-30/+99
|
* Remove user token warning in loginCryptex2021-04-081-8/+0
|
* [types] Snowflake can be either str or int.Rapptz2021-04-081-2/+2
|
* [commands] Raise error when a cog name is already registeredSebastian Law2021-04-081-2/+22
|
* Use Any instead of str for Embed typings for accuracyRapptz2021-04-081-10/+10
|
* Add typings for models for guilds, activities, and voiceNadir Chowdhury2021-04-085-0/+386
|
* Use f-strings in more places that were missed.Rapptz2021-04-0831-136/+213
|
* Add discord.types.Message.interaction attributeRapptz2021-04-081-0/+2
|
* Add interaction related typingsRapptz2021-04-082-5/+140
|
* Add AllowedMentions typingsRapptz2021-04-081-0/+10
|
* Fix up typings for attachment and messageRapptz2021-04-081-4/+8
|
* Add typings for `Message`, `Emoji`, and `Member` Nadir Chowdhury2021-04-085-2/+234
|
* [commands] Use has_error_handler instead in command_errorpikaninja2021-04-071-2/+3
|
* Make the bot template use f-strings over str.formatKallum2021-04-071-2/+2
|
* Fix inaccuracies with `AsyncIterator` typingsNadir Chowdhury2021-04-071-15/+17
|
* Add typings for channels and `PartialUser` Nadir Chowdhury2021-04-073-0/+152
|
* Add typing for flagsNadir Chowdhury2021-04-071-26/+48
|
* [docs] add note for possible Embed.type stringsSebastian Law2021-04-071-0/+2
|
* Fix regression in Activity relying on `try_enum` Nadir Chowdhury2021-04-071-1/+4
|
* Rename discord.types file based on relevant core module fileRapptz2021-04-072-3/+1
|
* Typehint discord.Embed and introduce discord.types subpackageRapptz2021-04-073-92/+251
| | | | | | | | The discord.types subpackage is currently only used to do type hinting of API payloads, it's very much incomplete right now and it'll be a rather long process. discord.Embed was typehinted and formatted using black.
* [commands] Only replace annotation if one was givenRapptz2021-04-071-1/+3
|
* Add `__all__` to remaining modulesNadir Chowdhury2021-04-0736-26/+210
|
* Add Embed.__bool__Rapptz2021-04-071-0/+22
| | | | Fixes #6661
* Revert "Remove unused group functionality"Rapptz2021-04-071-0/+12
| | | | This reverts commit d69b2f0af563993bdae425f4bb92fb555a238933.
* Fix AttributeError on HTTPClient.send_file to be send_filesSteve C2021-04-071-1/+1
|
* Use `format_map` instead of `format` for `Route.url` Nadir Chowdhury2021-04-061-1/+1
|
* Add source_channel and source_guild to WebhookZomatree2021-04-061-1/+118
|
* use `typing.AsyncIterator` for iteratorsNadir Chowdhury2021-04-061-30/+48
|
* [commands] Use typing.get_type_hints to resolve ForwardRefsNadir Chowdhury2021-04-061-6/+25
|
* Use non-underscore TypeVar in enum codeRapptz2021-04-061-3/+3
|
* Fix some regressions from create_task changeRapptz2021-04-062-2/+2
|
* Remove unused group functionalityRapptz2021-04-061-12/+0
|
* Reformat HTTPClient and add interaction endpointsRapptz2021-04-061-105/+484
|
* Make enum code work with typecheckersRapptz2021-04-061-12/+23
| | | | | This also makes it so invalid enum values fall back to a proxy type that still works similar to actual values.
* Add on_interaction event and Interaction class.Rapptz2021-04-064-0/+114
| | | | | This is the first pass at the functionality. It's currently a bit incomplete.
* Add support for setting application_idRapptz2021-04-062-0/+29
|
* [commands] Fix classmethod converters not working.Rapptz2021-04-051-7/+4
| | | | Protocols sure are annoying.
* [commands] Revert conversion code back to how it was originallyRapptz2021-04-051-8/+7
|