diff options
| author | Rapptz <[email protected]> | 2016-06-20 21:38:17 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-06-20 21:38:17 -0400 |
| commit | 324d10c9d97ce069f79c9055ea1492ea755ddc7c (patch) | |
| tree | 5eb3131461bac54511dc3b745be1796da64ed601 /examples | |
| parent | Raise TypeError if "after" parameter is not a callable. (diff) | |
| download | discord.py-324d10c9d97ce069f79c9055ea1492ea755ddc7c.tar.xz discord.py-324d10c9d97ce069f79c9055ea1492ea755ddc7c.zip | |
[commands] Add Command.ignore_extra attribute to ignore extra arguments
This allows you to strictly require a number of arguments. The default
behaviour in this case is still `True`, since it would be a breaking
change otherwise and is a sane default. However if someone would want
to set this to `False`, they would receive an exception of type
`TooManyArguments` if too many arguments are passed to a command.
Hopefully this removes the uses of `ctx.message.content == 'stuff'`
inside commands.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions