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
ShashankKumarSaxena
b2ac327bd8
[commands] Fix a small typo in Context.invoke docs
4 years ago
Josh
f3cb197429
[commands][types] Type hint commands-ext
4 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <[email protected] >
4 years ago
Rapptz
09f3f2111c
[commands] Add Context.current_parameter
4 years ago
Nadir Chowdhury
5ea5f32479
[commands] Fix missing `re` import in Context
4 years ago
MrKomodoDragon
ed3c141f5e
[commands] Add `clean_prefix` attribute to commands.Context
4 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
4 years ago
Rapptz
adaf7c6192
[commands] Use positional only parameter for Context.invoke
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
Sebastian Law
d6501159e7
[docs] copy signature from overridden and inherited methods
4 years ago
Sebastian Law
a30a694e36
[commands] fix Context.channel property documented type
4 years ago
Nadir Chowdhury
63ec23bac2
Code optimisations and refactoring via Sourcery
4 years ago
Nadir Chowdhury
e090ee4308
Fix NameError with invoked_parents
4 years ago
Sebastian Law
48b748e340
[commands] properly assign ctx.invoked_with with ctx.
resolves #6461
4 years ago
Sebastian Law
1afc127458
[commands] Add Context.invoked_parents
4 years ago
Jonas Bohmann
0d8ac41551
[commands] Fix documented type of `Context.cog`
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
PikalaxALT
d1cb30cccf
Implement discord.Message.reply
4 years ago
Rapptz
0b93fa3a82
Implement VoiceProtocol lower level hooks.
This allows changing the connect flow and taking control of it without
relying on internal events or tricks.
5 years ago
SebbyLaw
b43658f6ff
[commands] Add documentation for exceptions in Context.(re)invoke
5 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Rapptz
97d1c970bf
[commands] Context.send_help properly sends to on_help_command_error
5 years ago
NCPlayz
3c9bcc2851
Improve documentation
6 years ago
Rapptz
bdea50e1db
[commands] Better note for Command.invoke
6 years ago
Rapptz
05d4f7f962
[commands] Fix Context.send_help to work with the copied HelpCommand
6 years ago
NCPlayz
fb02191b80
Organise documentation
6 years ago
Rapptz
053e2f5b9a
Fix documentation linking issue in Messageables and Context
6 years ago
Rapptz
cc3b6bdd72
[commands] Rename it to Context.send_help for consistency.
6 years ago
Rapptz
ed5fcb320e
[commands] Add Context.show_help helper to use the HelpCommand set.
Fixes #1983
6 years ago
Kaeptm Blaubaer
b506ee1b8e
Change superclass to subclass in some documentation
6 years ago
Rapptz
caf3d17d4a
Rework entire cog system and partially document it and extensions.
6 years ago
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
6 years ago
Rapptz
860d6a9ace
Revert "Rework documentation to not duplicate inherited members."
This reverts commit 96981210b3
.
7 years ago
Rapptz
96981210b3
Rework documentation to not duplicate inherited members.
This will probably be reverted in 1 week.
7 years ago
BeatButton
a4d1599ce9
Change docstrings to raw-strings
7 years ago
Hornwitser
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
Adjust whitespace to be consistent with the rest of the library.
7 years ago
Hornwitser
d58fc0ccee
[lint] Remove unused imports
Left over from various refactoring and rewrites.
7 years ago
Rapptz
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
7 years ago
Tobotimus
3112e1c17e
Add intersphinx
7 years ago
Rapptz
bd4505fec5
[commands] Restart the StringView properly in Context.reinvoke.
The old code for some reason assumed that the length of the command
would be 1. This is because when I tested this I would use single
letter command names and it would "just work" when in reality it was
completely incorrect.
A reminder to thoroughly test instead of just fitting something to work
8 years ago
Rapptz
bcaee518a1
[commands] Remove support for pass_context=False in Command.
8 years ago
Rapptz
ce34713c45
[commands] Do not take up 'command' keyword-argument in Context.invoke.
It was annoying when commands would have a keyword-only argument
named 'command', such as a help command or a disable command.
8 years ago
Rapptz
b81fbb5a7f
[commands] Add Context.reinvoke and Command.root_parent
Context.reinvoke would be the new way to bypass checks and cooldowns.
However, with its addition comes a change in the invocation order of
checks, callbacks, and cooldowns. While previously cooldowns would
trigger after command argument parsing, the new behaviour parses
cooldowns before command argument parsing.
The implication of this change is that Context.args and Context.kwargs
will no longer be filled properly.
8 years ago
Rapptz
c3e39cd722
[commands] Fix Context.command_failed from being incorrect.
When used, it would be set to False after the invoke was done. Ideally
it should report to False during invoke but True during any error
case.
8 years ago
Rapptz
b44bba6ee6
First pass at documentation reform.
8 years ago
Rapptz
6188397fc9
[commands] Add Context.voice_client shortcut.
8 years ago