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
Dante Dam
1fac7a7e71
[commands] Add missing backtick for is_nsfw docs
2019-05-17 15:25:45 -07:00
Rapptz
f74d73327b
[commands] Explicitly assign invoked_subcommand to None before invoking
...
This should fix instances of it not working as expected in nested
groups.
2019-05-11 18:17:57 -04:00
Rapptz
6dcd68b8d7
[commands] Allow passing current
to more cooldown mapping methods.
...
Also adds a CooldownMapping.update_rate_limit helper function.
2019-04-24 23:26:33 -04:00
Rapptz
5a7b5cd14b
[commands] Allow passing of a message to NoPrivateMessage again.
...
Prevents an accidental breaking change.
2019-04-20 17:28:44 -04:00
Rapptz
188bd4e708
[commands] DM channels are NSFW in commands.is_nsfw check.
2019-04-20 17:27:04 -04:00
Rapptz
919dbcafb3
Consistent use of __all__ to prevent merge conflicts.
2019-04-20 17:20:58 -04:00
Rapptz
c6410ea9ab
[commands] Clean docstrings in Command.parents and Command.root_parent
2019-04-20 17:01:01 -04:00
Vexs
bbf9a42f87
[commands] Add Command.parents
...
Make command.root_parent use new command.parents property
2019-04-20 16:59:53 -04:00
Vexs
bb3ebc0ebc
[commands] Add custom exception classes for built-in checks
...
Added:
* MissingRole
* BotMissingRole
* MissingAnyRole
* BotMissingAnyRole
2019-04-20 16:45:37 -04:00
Vexs
dd84773f45
[commands] Allow passing cls to the commands.group decorator
2019-04-19 18:29:11 -04:00
Rapptz
7a1102ccf0
[commands] Use message creation as the reference time in cooldowns
2019-04-14 17:33:56 -04:00
Rapptz
ac1b9f5628
[commands] Fix lambda converters in non-module contexts.
...
Not sure why anyone would do this but might as well fix it.
2019-04-13 07:15:54 -04:00
Rapptz
015404b01c
[commands] Add versionadded to dm_only
2019-04-12 03:21:49 -04:00
Rapptz
ec1b3434a2
[commands] Fix erroneous string in dm_only check
2019-04-11 00:55:32 -04:00
Dante Dam
aabbd5a446
[commands] Added dm_only check
...
Raises PrivateMessageOnly on failure.
2019-04-11 00:02:22 -04:00
Rapptz
aeabd0761e
[commands] Raise TypeError instead of ClientException in some places
...
Certain decorators and functions expect coroutines and raise an
exception when this is not met. Change these to raise the appropriate
TypeError since they can't actually be handled by the user gracefully
anyway.
2019-04-07 22:31:05 -04:00