| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [commands] Fix repr for Greedy | Josh | 2021-04-10 | 1 | -0/+4 |
| | | |||||
| * | [commands] Refactor typing evaluation to not use get_type_hints | Rapptz | 2021-04-10 | 1 | -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 attribute | Rapptz | 2021-04-10 | 1 | -4/+1 |
| | | |||||
| * | Fix Intents resolution in the docs | Rapptz | 2021-04-10 | 1 | -1/+1 |
| | | |||||
| * | [commands] Minimise code duplication in channel converters | Nadir Chowdhury | 2021-04-10 | 1 | -117/+23 |
| | | |||||
| * | Added discord.StageChannel in documentation | TheOneMusic | 2021-04-10 | 1 | -0/+1 |
| | | |||||
| * | [commands] Make `commands.Greedy` a `typing.Generic` | James | 2021-04-10 | 2 | -23/+95 |
| | | |||||
| * | [commands] Provide a dynamic cooldown system | Dan Hess | 2021-04-10 | 2 | -19/+81 |
| | | |||||
| * | Add missing future annotations import | Rapptz | 2021-04-10 | 1 | -0/+2 |
| | | |||||
| * | Add typings for invites, templates, and bans | Nadir Chowdhury | 2021-04-10 | 7 | -38/+185 |
| | | |||||
| * | Add typings for audit logs, integrations, and webhooks | Nadir Chowdhury | 2021-04-10 | 8 | -54/+388 |
| | | |||||
| * | [commands]Add typing.Literal converter | Sigmath Bits | 2021-04-10 | 2 | -30/+99 |
| | | |||||
| * | Remove user token warning in login | Cryptex | 2021-04-08 | 1 | -8/+0 |
| | | |||||
| * | [types] Snowflake can be either str or int. | Rapptz | 2021-04-08 | 1 | -2/+2 |
| | | |||||
| * | [commands] Raise error when a cog name is already registered | Sebastian Law | 2021-04-08 | 1 | -2/+22 |
| | | |||||
| * | Use Any instead of str for Embed typings for accuracy | Rapptz | 2021-04-08 | 1 | -10/+10 |
| | | |||||
| * | Add typings for models for guilds, activities, and voice | Nadir Chowdhury | 2021-04-08 | 5 | -0/+386 |
| | | |||||
| * | Use f-strings in more places that were missed. | Rapptz | 2021-04-08 | 31 | -136/+213 |
| | | |||||
| * | Add discord.types.Message.interaction attribute | Rapptz | 2021-04-08 | 1 | -0/+2 |
| | | |||||
| * | Add interaction related typings | Rapptz | 2021-04-08 | 2 | -5/+140 |
| | | |||||
| * | Add AllowedMentions typings | Rapptz | 2021-04-08 | 1 | -0/+10 |
| | | |||||
| * | Fix up typings for attachment and message | Rapptz | 2021-04-08 | 1 | -4/+8 |
| | | |||||
| * | Add typings for `Message`, `Emoji`, and `Member` | Nadir Chowdhury | 2021-04-08 | 5 | -2/+234 |
| | | |||||
| * | [commands] Use has_error_handler instead in command_error | pikaninja | 2021-04-07 | 1 | -2/+3 |
| | | |||||
| * | Make the bot template use f-strings over str.format | Kallum | 2021-04-07 | 1 | -2/+2 |
| | | |||||
| * | Fix inaccuracies with `AsyncIterator` typings | Nadir Chowdhury | 2021-04-07 | 1 | -15/+17 |
| | | |||||
| * | Add typings for channels and `PartialUser` | Nadir Chowdhury | 2021-04-07 | 3 | -0/+152 |
| | | |||||
| * | Add typing for flags | Nadir Chowdhury | 2021-04-07 | 1 | -26/+48 |
| | | |||||
| * | [docs] add note for possible Embed.type strings | Sebastian Law | 2021-04-07 | 1 | -0/+2 |
| | | |||||
| * | Fix regression in Activity relying on `try_enum` | Nadir Chowdhury | 2021-04-07 | 1 | -1/+4 |
| | | |||||
| * | Rename discord.types file based on relevant core module file | Rapptz | 2021-04-07 | 2 | -3/+1 |
| | | |||||
| * | Typehint discord.Embed and introduce discord.types subpackage | Rapptz | 2021-04-07 | 3 | -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 given | Rapptz | 2021-04-07 | 1 | -1/+3 |
| | | |||||
| * | Add `__all__` to remaining modules | Nadir Chowdhury | 2021-04-07 | 36 | -26/+210 |
| | | |||||
| * | Add Embed.__bool__ | Rapptz | 2021-04-07 | 1 | -0/+22 |
| | | | | | Fixes #6661 | ||||
| * | Revert "Remove unused group functionality" | Rapptz | 2021-04-07 | 1 | -0/+12 |
| | | | | | This reverts commit d69b2f0af563993bdae425f4bb92fb555a238933. | ||||
| * | Fix AttributeError on HTTPClient.send_file to be send_files | Steve C | 2021-04-07 | 1 | -1/+1 |
| | | |||||
| * | Use `format_map` instead of `format` for `Route.url` | Nadir Chowdhury | 2021-04-06 | 1 | -1/+1 |
| | | |||||
| * | Add source_channel and source_guild to Webhook | Zomatree | 2021-04-06 | 1 | -1/+118 |
| | | |||||
| * | use `typing.AsyncIterator` for iterators | Nadir Chowdhury | 2021-04-06 | 1 | -30/+48 |
| | | |||||
| * | [commands] Use typing.get_type_hints to resolve ForwardRefs | Nadir Chowdhury | 2021-04-06 | 1 | -6/+25 |
| | | |||||
| * | Use non-underscore TypeVar in enum code | Rapptz | 2021-04-06 | 1 | -3/+3 |
| | | |||||
| * | Fix some regressions from create_task change | Rapptz | 2021-04-06 | 2 | -2/+2 |
| | | |||||
| * | Remove unused group functionality | Rapptz | 2021-04-06 | 1 | -12/+0 |
| | | |||||
| * | Reformat HTTPClient and add interaction endpoints | Rapptz | 2021-04-06 | 1 | -105/+484 |
| | | |||||
| * | Make enum code work with typecheckers | Rapptz | 2021-04-06 | 1 | -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. | Rapptz | 2021-04-06 | 4 | -0/+114 |
| | | | | | | This is the first pass at the functionality. It's currently a bit incomplete. | ||||
| * | Add support for setting application_id | Rapptz | 2021-04-06 | 2 | -0/+29 |
| | | |||||
| * | [commands] Fix classmethod converters not working. | Rapptz | 2021-04-05 | 1 | -7/+4 |
| | | | | | Protocols sure are annoying. | ||||
| * | [commands] Revert conversion code back to how it was originally | Rapptz | 2021-04-05 | 1 | -8/+7 |
| | | |||||