| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Add utils.MISSING | Nadir Chowdhury | 2021-04-29 | 1 | -9/+1 | |
| | | ||||||
| * | Split annotation resolution to discord.utils | Rapptz | 2021-04-27 | 2 | -98/+3 | |
| | | ||||||
| * | [commands] Disallow float/complex in Literal but allow None | Rapptz | 2021-04-27 | 1 | -1/+1 | |
| | | | | | Type checkers (both mypy and pydantic) apparently don't like it | |||||
| * | [commands] Add support for typing.Union to Flags | Josh | 2021-04-25 | 1 | -5/+11 | |
| | | ||||||
| * | [commands] Fix regression with Union converters not working | Rapptz | 2021-04-24 | 1 | -1/+3 | |
| | | | | | This was due to the Literal restriction from earlier. | |||||
| * | [commands] Disallow complicated Literal types | Rapptz | 2021-04-24 | 1 | -0/+3 | |
| | | ||||||
| * | [commands] Fix Literal converter not working within flags | Rapptz | 2021-04-24 | 1 | -0/+4 | |
| | | ||||||
| * | [commands] Add FlagConverter.__iter__ | Rapptz | 2021-04-24 | 1 | -0/+13 | |
| | | ||||||
| * | [commands] Fix _HelpCommandImpl.clean_params popitem | Stella | 2021-04-23 | 1 | -2/+2 | |
| | | ||||||
| * | [commands] Fix flag detection code in get_flags | Rapptz | 2021-04-23 | 1 | -3/+3 | |
| | | ||||||
| * | Fix documentation for RoleConverter | jack1142 | 2021-04-21 | 1 | -2/+2 | |
| | | ||||||
| * | [commands] Set constructible FlagConverter flags to not be required | Josh | 2021-04-21 | 1 | -0/+3 | |
| | | ||||||
| * | [commands] Allow FlagCommand subclasses to inherit options | Josh | 2021-04-21 | 1 | -6/+20 | |
| | | ||||||
| * | [commands] Add support for aliasing to FlagConverter | Josh | 2021-04-21 | 1 | -4/+47 | |
| | | ||||||
| * | Fix typo within `HelpCommand.verify_checks` documentation | Kino | 2021-04-21 | 1 | -1/+1 | |
| | | ||||||
| * | [commands] Avoid creating unnecessary flag mapping copies | Rapptz | 2021-04-20 | 1 | -2/+2 | |
| | | ||||||
| * | [commands] Default construct flags if they're not passed as parameters | Rapptz | 2021-04-20 | 2 | -0/+18 | |
| | | | | | | This only applies if and only if the flag can be default constructible. Ergo, all the flags are optional or not required. | |||||
| * | [commands] Actually expose the FlagError base error | Rapptz | 2021-04-19 | 1 | -0/+1 | |
| | | ||||||
| * | [commands] Initial support for FlagConverter | Rapptz | 2021-04-19 | 3 | -0/+608 | |
| | | | | | | The name is currently pending and there's no command.signature hook for it yet since this requires bikeshedding. | |||||
| * | [commands] Add run_converters helper to call converters | Rapptz | 2021-04-19 | 2 | -116/+186 | |
| | | ||||||
| * | [commands] Add Context.current_parameter | Rapptz | 2021-04-19 | 2 | -0/+7 | |
| | | ||||||
| * | [commands] Refactor evaluation functions to allow passing in localns | Rapptz | 2021-04-18 | 1 | -8/+25 | |
| | | ||||||
| * | [tasks] Move the Loop's sleep to be before exit conditions | Steve C | 2021-04-16 | 1 | -2/+2 | |
| | | | | | | | | | | | | | This change makes it more so that `Loop.stop()` gracefully makes the current iteration the final one, by waiting AND THEN returning. The current implementation is closer to `cancel`, while also not. I encountered this because I was trying to run a `@tasks.loop(count=1)`, and inside it I print some text and change the interval, and in an `after_loop`, I restart the loop. Without this change, it immediately floods my console, due to not waiting before executing `after_loop`. | |||||
| * | [commands] Add a converter for discord.Object | Nadir Chowdhury | 2021-04-16 | 2 | -0/+43 | |
| | | ||||||
| * | Restrict snowflake regexes to 15-20 digits | Nadir Chowdhury | 2021-04-16 | 1 | -6/+6 | |
| | | ||||||
| * | [commands] Remove HelpCommand.clean_prefix (#6736) | pikaninja | 2021-04-15 | 1 | -19/+7 | |
| | | ||||||
| * | [commands] Fix missing `re` import in Context | Nadir Chowdhury | 2021-04-15 | 1 | -0/+1 | |
| | | ||||||
| * | [commands] Add `clean_prefix` attribute to commands.Context | MrKomodoDragon | 2021-04-14 | 1 | -0/+14 | |
| | | ||||||
| * | [commands] Fix Command.clean_params to return a regular dict | Rapptz | 2021-04-11 | 1 | -7/+10 | |
| | | ||||||
| * | [commands] Strip text to remove spaces before ellipsis | Kreusada | 2021-04-11 | 1 | -1/+1 | |
| | | ||||||
| * | [commands] Add support for Python 3.10 Union typing | Rapptz | 2021-04-11 | 1 | -1/+8 | |
| | | ||||||
| * | [commands] Fix errors with cooldown mappings | Rapptz | 2021-04-11 | 1 | -2/+7 | |
| | | ||||||
| * | [commands] use __args__ and __origin__ where applicable | Josh | 2021-04-11 | 2 | -17/+27 | |
| | | ||||||
| * | [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 | |
| | | ||||||
| * | [commands] Minimise code duplication in channel converters | Nadir Chowdhury | 2021-04-10 | 1 | -117/+23 | |
| | | ||||||
| * | [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 | |
| | | ||||||
| * | [commands]Add typing.Literal converter | Sigmath Bits | 2021-04-10 | 2 | -30/+99 | |
| | | ||||||
| * | [commands] Raise error when a cog name is already registered | Sebastian Law | 2021-04-08 | 1 | -2/+22 | |
| | | ||||||
| * | Use f-strings in more places that were missed. | Rapptz | 2021-04-08 | 7 | -40/+42 | |
| | | ||||||
| * | [commands] Use has_error_handler instead in command_error | pikaninja | 2021-04-07 | 1 | -2/+3 | |
| | | ||||||
| * | [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 | 4 | -2/+17 | |
| | | ||||||
| * | [commands] Use typing.get_type_hints to resolve ForwardRefs | Nadir Chowdhury | 2021-04-06 | 1 | -6/+25 | |
| | | ||||||
| * | [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 | |
| | | ||||||
| * | [commands] Fix AttributeError for classes missing convert attribute | ToxicKidz | 2021-04-05 | 1 | -1/+1 | |
| | | ||||||
| * | [commands] Fix logic in Cog.has_error_handler() | Rapptz | 2021-04-05 | 1 | -1/+1 | |
| | | ||||||