zephyrkul
9fe19dcc69
[commands] Add Context.permissions and Context.bot_permissions
3 years ago
Josh
c9f777c873
Fix type annotations to adhere to latest pyright release
3 years ago
Rapptz
36f039a1bf
[commands] Fix interaction baton not being set during Context creation
3 years ago
Rapptz
3dddddc8f9
[commands] Change Context.typing to defer for interaction contexts
3 years ago
Var
7b65be9d25
[commands] Fix broken None reference
Co-authored-by: Danny <[email protected] >
3 years ago
Rapptz
8699d2139a
Improve generic duck type programming with PartialMessageable
This adds jump_url, permissions_for, and created_at. Luckily, most
cases of this type being constructed already have the guild_id at
creation time.
3 years ago
Rapptz
5357b9319b
[commands] Ignore delete_after for ephemeral interaction sends
3 years ago
Rapptz
84e6b9283d
[commands] Fix delete_after not working with interaction Context.send
3 years ago
Rapptz
cd0d6749ea
[commands] Fix Context.reply not working with expired interactions
3 years ago
Rapptz
4fb1309e2a
[commands] Mock interaction context prefix
Most user-level code probably expects the prefix to be valid and not
None, so mocking it to ensure it's at least a string is probably for
the best.
3 years ago
Rapptz
fa3a4c109b
[commands] Fix Context.reply not working for hybrid commands
3 years ago
Rapptz
c1892131a6
[commands] Fix Context docstring missing Interaction ref
3 years ago
Rapptz
840eb577d4
[commands] Add initial implementation of hybrid commands
Hybrid commands allow a regular command to also double as a slash
command, assuming it meets the subset required to function.
3 years ago
James Hilton-Balfe
55c5be78cf
[commands] Implement commands.parameter
3 years ago
Kellen
0f18d93e47
Remove unused imports
3 years ago
jack1142
3d914e08e0
[commands] Add Context.current_argument
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
Josh
fafc5b13f6
[commands] Rework help command to avoid a deepcopy on invoke
3 years ago
Rapptz
1192d842e1
Fix some type checker errors and remove some type ignores
Caught from an upgraded Pyright
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
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