Soheab_
e6bed03d0c
[commands] Add displayed_name to commands.Parameter
2 years ago
ster
c273f26805
Add coro tag to docstrings that were missing it
3 years ago
Soheab
6c59f7de09
[commands] Add description kwarg to parameters and show in default help
3 years ago
Josh
52a5f10307
Fix type annotations to adhere to latest pyright release
3 years ago
Michael H
3a1cda5ff2
[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
TripleM
aa69701161
Remove direct discord.utils.MISSING references ( #290 )
Co-authored-by: dolfies <[email protected] >
3 years ago
dolfies
8fcca3183a
Rebase to latest upstream
3 years ago
dolfies
29c2036bc8
Rebase to latest upstream
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
dolfies
4c2d9bc0d0
Give ext.commands some love
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"
6 years ago
Rapptz
d4b13bd32b
[commands] Fix up Paginator documentation.
These aren't optional.
6 years ago
Matt (IPv4) Cowley
391ff7a486
[commands] Calculate suffix length at each add_line
6 years ago
Harmon
94c0cb0d5c
[commands] Add missing word in HelpCommand documentation
6 years ago
NCPlayz
3c9bcc2851
Improve documentation
6 years ago
Benjamin Mintz
0a0c43321b
[commands] MinimalHelpCommand: add cog description
6 years ago
Rapptz
ad5beed8dd
[commands] Copy HelpCommand instances to prevent race conditions.
Fixes #2123
Slight breaking change if someone had an expectation that no copies
were made behind the scene (which is sensible), however writing code
that relies on this expectation is probably buggy anyway.
6 years ago
Rapptz
919dbcafb3
Consistent use of __all__ to prevent merge conflicts.
6 years ago