Nadir Chowdhury
63ec23bac2
Code optimisations and refactoring via Sourcery
2021-02-24 21:26:51 -05:00
Sebastian Law
1afc127458
[commands] Add Context.invoked_parents
2021-02-23 03:39:08 -05:00
Bryan Forbes
16e0adb315
[commands] Handle positional-only parameters in bot commands
2021-02-17 23:48:09 -05:00
Rapptz
b9a99238e8
[commands] Add Command/Cog.has_error_handler
...
This allows querying the state without relying on internal undocumented
attributes.
2021-01-15 06:00:45 -05:00
Nihaal Sangha
69bdc3a184
Change copyright year to present
2021-01-15 05:28:11 -05:00
jack1142
ed2650f786
Fix documented type of Command.usage
2021-01-14 03:17:18 -05:00
Sebastian Law
e9e81d1a55
[commands] fully remove command when CommandRegistrationError is raised for alias
2020-12-29 08:24:54 -05:00
Dan Hess
faffc8eeb2
[commands] Correct concurrency never releasing during prepare call
2020-12-26 20:58:58 -05:00
Rapptz
f9dd200314
[commands] max_concurrency comes before cooldowns
...
Fix #6172
2020-12-17 22:21:45 -05:00
Michael
93fa46713a
Fix and add documentation
2020-09-23 03:19:35 -04:00
Josh
f8a7d3fc54
[commands] Fix exception raised in Command invoke hooks.
2020-09-09 19:47:05 -04:00
Skye Im
af88fc19b3
[commands] Update Bot.command() decorator docs
2020-09-07 22:29:02 -04:00
Nadir Chowdhury
367c4b5fd2
[docs] remove unresolved doc refs, fix attribute ref
2020-09-07 22:25:11 -04:00
khazhyk
6349d37a97
[commands] add require_var_positional
2020-09-07 22:24:48 -04:00
Rapptz
0a7e2f7c2f
[commands] BadBooleanArgument -> BadBoolArgument
2020-09-04 08:47:07 -04:00
Simon Beal
6ebd2e13a1
[commands] Add subclasses of BadArgument for converters
2020-09-04 08:45:29 -04:00
Rapptz
4203e7a5a8
[commands] Use edited timestamp if provided for cooldown timing
2020-08-25 23:15:26 -04:00
Dan Hess
3a9fd00a1a
[commands] Provide a way to retrieve time left for a cooldown
2020-08-05 21:37:08 -04:00
Rapptz
09f432016c
[commands] Restart subcommand_passed chain on invoke
...
Fix #5198
2020-08-05 08:36:45 -04:00
jack1142
901290c8a2
[commands] GroupView.get_command shouldn't raise errors for empty names
2020-07-22 23:16:43 -04:00
jack1142
84098ed824
[commands] Add a new exception class for command registration errors
2020-06-28 03:48:07 -04:00
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
2020-06-28 03:45:58 -04:00
Saphielle Akiyama
1e9937a234
Aliases passed as a list or as a tuple
...
Nothing too important, felt like some people would appreciate it;
2020-05-10 17:02:56 -04:00
MarkKoz
2653ae7599
[commands] Stop yielding duplicate commands from walk_commands
2020-04-06 04:52:53 -04:00
NCPlayz
1b0e806245
[commands] Implement commands.before/after_invoke
2020-04-04 02:57:20 -04:00
Rapptz
bb1c1e9fa3
[commands] Raise when passing invalid permission keys in their checks
2020-02-02 19:11:50 -05:00
Karthikeyan Singaravelan
1b4cac92fc
Fix warnings regarding invalid escape sequences.
2020-01-25 21:46:33 -05:00
Rapptz
d9cd4a3561
[commands] Implement Command.__call__
2020-01-21 04:27:20 -05:00
Rapptz
02397306b2
Drop superfluous zero in version related changes in the documentation
2020-01-21 03:47:56 -05:00
Rapptz
bf84c63396
[commands] Add max_concurrency decorator
2020-01-21 03:26:41 -05:00
Rapptz
6071607176
Bump copyright year to 2020
...
Closes #2510
2020-01-19 20:03:00 -05:00
Rapptz
9f2018f439
[commands] Case insensitivity uses casefold instead of lower
...
There seems to be very little performance regression in doing so (+5ns)
so might as well go for the more correct behaviour.
2020-01-19 19:49:50 -05:00
Rapptz
a2b241446e
[commands] Document BucketType separately
2020-01-18 20:04:00 -05:00
apple502j
7af8b313e5
[commands] Add missing async in documentation
2020-01-14 23:46:46 -05:00
Rapptz
e5870903f5
[commands] Force the predicate attribute in checks to be a coroutine
2020-01-14 20:13:33 -05:00
Rapptz
ae3dac0d59
[commands] Add check_any check to OR together various checks
2020-01-06 22:03:56 -05:00
Rapptz
51546dbdb6
[commands] Document the changed Command.can_run behaviour
2020-01-06 04:02:56 -05:00
Rapptz
527b3485dc
[commands] Make Command.can_run process disabled commands
2020-01-06 00:30:04 -05:00
Rapptz
d9a8ae9c78
[commands] Add predicate attribute to checks to get inner function
2019-12-18 01:20:50 -05:00
Rapptz
1179df7e29
[commands] Make Greedy ignore parsing errors.
2019-12-17 00:27:56 -05:00
Xua
7972570eb6
[commands] Add guild-based permission checks
2019-12-17 00:11:39 -05:00
Riley Shaw
7cde9febcf
[commands] Add Command/Group.add/remove_check
2019-11-15 04:29:52 -05:00
romangraef
bc642ded6e
[commands] Allow converters from custom discord.ext extensions
...
Originally the converting of an argument with type in the discord.*
package would try to use the predefined converters, even if there were
none present. This is fixed by supplying a default argument to getattr
Fixes #2369
2019-10-20 05:19:03 -04:00
Josh B
07840db053
Document Command.cog property
2019-10-17 05:56:01 -04:00
Rapptz
ceaba01776
Add version information from missing PRs.
2019-08-11 19:04:39 -04:00
BluePhoenixGame
c7d3ebb400
[commands] Add role cooldown bucket
2019-08-11 18:44:16 -04:00
Rapptz
671a19a24a
[commands] Ensure cooldowns are properly copied.
2019-06-12 23:40:43 -04:00
Rapptz
af4e3ad79b
Some documentation touch-ups and missing stuff in the changelog.
2019-06-09 01:24:41 -04:00
NCPlayz
3c9bcc2851
Improve documentation
2019-06-07 19:27:46 -04:00
Dante Dam
92731bbf5f
[commands] Fixed extra "only" in dm_only docs
2019-05-19 20:04:42 -07:00