z03h
d18f14c173
[commands] fix HelpCommand not carrying over checks
update command impl over creating new one
11 months ago
Rapptz
0871b34fc8
[commands] Revert on_error when cog is ejected for HelpCommand
2 years ago
Soheab_
94bf7d8644
[commands] Add displayed_name to commands.Parameter
2 years ago
Devon R
8f3224b70b
[commands] Change Paginator.pages to not prematurely close
2 years ago
ster
95b6bd8782
Add coro tag to docstrings that were missing it
3 years ago
Soheab
668196c14c
[commands] Add description kwarg to parameters and show in default help
3 years ago
Bryan Forbes
d707019348
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores
3 years ago
Josh
c9f777c873
Fix type annotations to adhere to latest pyright release
3 years ago
xCirno
6901907b69
[commands] Add seealso directive in functions referencing checks
3 years ago
Michael H
d0667d08e3
[commands] Fix typing of check/check_any
This changes the type information of check decorators to return a
protocol representing that the decorator leaves the underlying object
unchanged while having a .predicate attribute.
resolves #7949
3 years ago
Rapptz
737ff5beaf
Update Pyright to 1.1.237
3 years ago
James Hilton-Balfe
55c5be78cf
[commands] Implement commands.parameter
3 years ago
Rapptz
29668c51ae
[commands] Revert back to older help command implementation
The newer implementation did not play nicely with spawned tasks and
accessing HelpCommand.context, which was a frequent pain point when
writing paginated help commands.
3 years ago
Bryan Forbes
06c257760b
Update types to use Awaitable where possible
3 years ago
jack1142
5ffa3e85de
Update comments after `# type: ignore` to be compatible with PEP 484
3 years ago
Bryan Forbes
062f4d6f87
Change some methods to use positional-only marker
Co-authored-by: Danny <[email protected] >
3 years ago
Stocker
eca4727593
[commands] Add missing and fix existing type annotations
3 years ago
Josh
46b3e036e2
[commands] Fix help error/invoke hooks not running
3 years ago
Josh
1b70fad5ec
[commands] Fix exceptions in HelpCommand
3 years ago
Josh
fafc5b13f6
[commands] Rework help command to avoid a deepcopy on invoke
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Neon Jonn
adb69e7157
Fix some spelling mistakes
3 years ago
Stocker
13355f3712
Fix HelpCommand.invoked_with raising an error
This would happen if the context hasn't been set yet.
3 years ago
Rapptz
625c416f18
[commands] Fix command parameter handling in HelpCommand
3 years ago
Rapptz
88b520b5ab
Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
3 years ago
jack1142
dc19c6c7d5
Add positional-only arguments in more places
3 years ago
Rapptz
2d8f299b6b
Use MISSING instead of None for HelpCommand.context
It's basically just late-init
4 years ago
Josh
f3cb197429
[commands][types] Type hint commands-ext
4 years ago
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <[email protected] >
4 years ago
Stella
91c473db57
[commands] Fix _HelpCommandImpl.clean_params popitem
4 years ago
Kino
0c1c9284f6
Fix typo within `HelpCommand.verify_checks` documentation
4 years ago
pikaninja
ffea48f218
[commands] Remove HelpCommand.clean_prefix ( #6736 )
4 years ago
Kreusada
af5964358d
[commands] Strip text to remove spaces before ellipsis
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Rapptz
c4c2cbf6d2
[commands] Remove nullability from help command implementation
Fixes #5154
4 years ago
jack1142
caa3b4e8f4
[commands] Include group args in command signature
4 years ago
sudosnok
01d8502c83
[commands] Added tribool behaviour to HelpCommand.verify_checks
4 years ago
PikalaxALT
b7c7200f4d
[commands] Add linesep kwarg to Paginator
4 years ago
Alex Nørgaard
c72dbf28ba
[commands] Fix Command duplicates in `HelpCommand.get_bot_mapping`
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Michael
93fa46713a
Fix and add documentation
5 years ago
Riley S
ad22fb295e
[commands] implement HelpCommand.add/remove_check
5 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
5 years ago
jack1142
79276da17e
Escape backslashes in display name in `clean_prefix`
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Michael H
6cdda4a320
Patch clean_prefix for new text editor
The new editor seems to force mentions to have ! even without a nick.
5 years ago
StarrFox
e79ccf3f4c
[commands] check if prefix is None in .pages
5 years ago
Nelluk
dc86670d7f
Fix typo in help.py docs
Changed "intend" to "indent"
5 years ago
Rapptz
d4b13bd32b
[commands] Fix up Paginator documentation.
These aren't optional.
6 years ago