| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [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 |
| | | |||||
| * | [commands] Address incorrect use of subclass (from type perspective) | Michael H | 2021-04-05 | 1 | -4/+5 |
| | | | | This is a follow up from #6641 | ||||
| * | [commands] Add more type information to public API of converters | Michael H | 2021-04-05 | 1 | -18/+18 |
| | | |||||
| * | Use covariant TypeVar for protocol | Michael H | 2021-04-05 | 1 | -1/+1 |
| | | |||||
| * | [commands] Fix @classmethod converters | Michael H | 2021-04-05 | 1 | -6/+9 |
| | | |||||
| * | Use typing.Protocol instead of abc.ABCMeta | James | 2021-04-04 | 2 | -29/+34 |
| | | |||||
| * | [commands] Use positional only parameter for Context.invoke | Rapptz | 2021-04-04 | 1 | -12/+2 |
| | | |||||
| * | Modernize code to use f-strings | Rapptz | 2021-04-04 | 12 | -108/+85 |
| | | | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`. | ||||
| * | [commands] Add missing versionadded on StoreChannelConverter | Rapptz | 2021-04-03 | 1 | -5/+7 |
| | | |||||
| * | [commands] Add StoreChannelConverter | DoggieLicc | 2021-04-03 | 1 | -0/+40 |
| | | |||||
| * | Implement StageChannel and related methods | Nadir Chowdhury | 2021-04-03 | 1 | -0/+41 |
| | | |||||
| * | [docs] copy signature from overridden and inherited methods | Sebastian Law | 2021-03-29 | 1 | -2/+1 |
| | | |||||
| * | [commands] Add support for stripping whitespace after the prefix | Rapptz | 2021-03-28 | 1 | -0/+10 |
| | | | | | This is configured with the strip_after_prefix option in `Bot.__init__` | ||||
| * | [commands] Remove nullability from help command implementation | Rapptz | 2021-03-28 | 1 | -16/+3 |
| | | | | | Fixes #5154 | ||||
| * | Add remove_markdown helper function | Edwin | 2021-03-28 | 1 | -1/+8 |
| | | |||||
| * | [commands] Only remove top level commands on cog load failure | Rapptz | 2021-03-28 | 1 | -1/+2 |
| | | |||||
| * | [commands] allow arbitrary callables in cooldown | Mikey | 2021-03-28 | 2 | -5/+11 |
| | | |||||
| * | [commands] fix documented type for Command.checks | Sebastian Law | 2021-03-24 | 1 | -1/+1 |
| | | |||||
| * | [commands] Include group args in command signature | jack1142 | 2021-03-24 | 1 | -4/+13 |
| | | |||||
| * | [commands] fix Context.channel property documented type | Sebastian Law | 2021-03-13 | 1 | -2/+2 |
| | | |||||
| * | Fix references to snowflakes being max 21 long | Nihaal Sangha | 2021-03-02 | 1 | -4/+4 |
| | | |||||
| * | [tasks] remove redundant condition in Loop.next_iteration | Sebastian Law | 2021-02-28 | 1 | -1/+1 |
| | | | | | | | | | self._task is only None if the Loop has never been started before, which means None should be returned always, regardless of how many seconds was passed into the constructor this didn't break anything before because self._next_iteration will be None as well if self._task is None. | ||||
| * | Code optimisations and refactoring via Sourcery | Nadir Chowdhury | 2021-02-24 | 5 | -12/+10 |
| | | |||||