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
2653ae7599
[commands] Stop yielding duplicate commands from walk_commands
2020-04-06 04:52:53 -04:00
1b0e806245
[commands] Implement commands.before/after_invoke
2020-04-04 02:57:20 -04:00
bb1c1e9fa3
[commands] Raise when passing invalid permission keys in their checks
2020-02-02 19:11:50 -05:00
1b4cac92fc
Fix warnings regarding invalid escape sequences.
2020-01-25 21:46:33 -05:00
d9cd4a3561
[commands] Implement Command.__call__
2020-01-21 04:27:20 -05:00
02397306b2
Drop superfluous zero in version related changes in the documentation
2020-01-21 03:47:56 -05:00
bf84c63396
[commands] Add max_concurrency decorator
2020-01-21 03:26:41 -05:00
6071607176
Bump copyright year to 2020
...
Closes #2510
2020-01-19 20:03:00 -05:00
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
a2b241446e
[commands] Document BucketType separately
2020-01-18 20:04:00 -05:00
7af8b313e5
[commands] Add missing async in documentation
2020-01-14 23:46:46 -05:00
e5870903f5
[commands] Force the predicate attribute in checks to be a coroutine
2020-01-14 20:13:33 -05:00
ae3dac0d59
[commands] Add check_any check to OR together various checks
2020-01-06 22:03:56 -05:00
51546dbdb6
[commands] Document the changed Command.can_run behaviour
2020-01-06 04:02:56 -05:00
527b3485dc
[commands] Make Command.can_run process disabled commands
2020-01-06 00:30:04 -05:00
d9a8ae9c78
[commands] Add predicate attribute to checks to get inner function
2019-12-18 01:20:50 -05:00
1179df7e29
[commands] Make Greedy ignore parsing errors.
2019-12-17 00:27:56 -05:00
7972570eb6
[commands] Add guild-based permission checks
2019-12-17 00:11:39 -05:00
7cde9febcf
[commands] Add Command/Group.add/remove_check
2019-11-15 04:29:52 -05:00
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
07840db053
Document Command.cog property
2019-10-17 05:56:01 -04:00
ceaba01776
Add version information from missing PRs.
2019-08-11 19:04:39 -04:00
c7d3ebb400
[commands] Add role cooldown bucket
2019-08-11 18:44:16 -04:00
671a19a24a
[commands] Ensure cooldowns are properly copied.
2019-06-12 23:40:43 -04:00
af4e3ad79b
Some documentation touch-ups and missing stuff in the changelog.
2019-06-09 01:24:41 -04:00
3c9bcc2851
Improve documentation
2019-06-07 19:27:46 -04:00
92731bbf5f
[commands] Fixed extra "only" in dm_only docs
2019-05-19 20:04:42 -07:00
1fac7a7e71
[commands] Add missing backtick for is_nsfw docs
2019-05-17 15:25:45 -07:00
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
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
5a7b5cd14b
[commands] Allow passing of a message to NoPrivateMessage again.
...
Prevents an accidental breaking change.
2019-04-20 17:28:44 -04:00
188bd4e708
[commands] DM channels are NSFW in commands.is_nsfw check.
2019-04-20 17:27:04 -04:00
919dbcafb3
Consistent use of __all__ to prevent merge conflicts.
2019-04-20 17:20:58 -04:00
c6410ea9ab
[commands] Clean docstrings in Command.parents and Command.root_parent
2019-04-20 17:01:01 -04:00
bbf9a42f87
[commands] Add Command.parents
...
Make command.root_parent use new command.parents property
2019-04-20 16:59:53 -04:00
bb3ebc0ebc
[commands] Add custom exception classes for built-in checks
...
Added:
* MissingRole
* BotMissingRole
* MissingAnyRole
* BotMissingAnyRole
2019-04-20 16:45:37 -04:00
dd84773f45
[commands] Allow passing cls to the commands.group decorator
2019-04-19 18:29:11 -04:00
7a1102ccf0
[commands] Use message creation as the reference time in cooldowns
2019-04-14 17:33:56 -04:00
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
015404b01c
[commands] Add versionadded to dm_only
2019-04-12 03:21:49 -04:00
ec1b3434a2
[commands] Fix erroneous string in dm_only check
2019-04-11 00:55:32 -04:00
aabbd5a446
[commands] Added dm_only check
...
Raises PrivateMessageOnly on failure.
2019-04-11 00:02:22 -04:00
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
c96642860c
[commands] Add Command.cooldown_after_parsing keyword argument.
...
This controls the behaviour of cooldown execution order. This does
not change the default behaviour however.
2019-03-22 22:23:07 -04:00
64d749a13f
[commands] Ensure handlers are copied even during update.
...
Fix #2001
2019-03-20 22:38:00 -04:00
c30a366106
Try to consistently use "inherit" vs "derive" in documentation.
2019-03-19 09:23:12 -04:00
fb02191b80
Organise documentation
2019-03-19 08:24:42 -04:00
3326adf63b
[commands] Optimise GroupMixin.get_command for the no space case.
...
Comes at a 30ns slowdown for the space case, however.
2019-03-16 09:27:59 -04:00
b506ee1b8e
Change superclass to subclass in some documentation
2019-03-16 05:32:59 -04:00