aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
Commit message (Collapse)AuthorAgeFilesLines
* [commands] Make Bot.check decorator an actual decorator.Rapptz2016-07-081-6/+4
|
* [commands] Added missing parenthesis in examplesPapyrusThePlant2016-07-081-8/+8
|
* [commands] Refactor pagination into its own class.Rapptz2016-07-052-49/+71
| | | | | | This change allows users to more easily create their own formatters without having to reinvent the pagination logic themselves. Hopefully this makes it less of a pain for people to create custom help pages.
* [commands] Fix error in converters in a private message context.Rapptz2016-07-022-11/+11
| | | | | I was referencing a member function that did not actually exist. So I ported it over to a free function that could be used.
* [commands] Do not lower-case the function name for default command namesRapptz2016-07-011-2/+2
| | | | There are some badlets out there that apparently violate PEP-8.
* [commands] Make GroupMixin.remove_command return None.Rapptz2016-06-301-0/+5
| | | | | This is for cases where the command has been removed already. This will make the function have a somewhat no exception guarantee.
* [commands] Fix error where consume rest would not work.Rapptz2016-06-231-1/+1
| | | | I didn't end up refactoring this piece of work out.
* [commands] Fix bug that made functions stop working as converters.Rapptz2016-06-231-1/+1
|
* [commands] Port special cased discord converters to commands.ConverterRapptz2016-06-223-116/+163
|
* [commands] Add commands.Converter base for converts with context.Rapptz2016-06-221-5/+38
| | | | | This allows users to implement converters that work similar to the ones special cased by the `discord` classes.
* [commands] Add Command.ignore_extra attribute to ignore extra argumentsRapptz2016-06-202-3/+20
| | | | | | | | | | | 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.
* [commands] Add the concept of global checks.Rapptz2016-06-192-2/+90
| | | | | | | Global checks are checks that are executed before regular per-command checks except done to every command that the bot has registered. This allows you to have checks that apply to every command without having to override `on_message` or appending the check to every single command.
* [commands] Add `delete_after` keyword argument to utility functions.Rapptz2016-06-191-4/+82
| | | | | This includes things like `Bot.say`, `Bot.upload`, `Bot.whisper`, and `Bot.reply`.
* [commands] Add Context.cog property.Rapptz2016-06-161-0/+7
|
* [commands] Only show CommandNotFound on non-empty commands.Rapptz2016-06-141-1/+1
|
* [commands] Make the CommandError required argument optional again.Rapptz2016-06-101-4/+7
|
* [commands] Fix @everyone elevation in the default help command.Rapptz2016-06-101-2/+14
|
* [commands] Fix bug with Context.command not updating in groups.Rapptz2016-06-101-0/+1
| | | | This happened when `invoke_without_command` was set to True.
* [commands] Make it so CommandError does not contain @everyone mentions.Rapptz2016-06-101-1/+5
| | | | Mitigates some permission elevation issues.
* [commands] Exceptions raised while invocation raise CommandInvokeError.Rapptz2016-06-102-2/+15
| | | | | | This change should make it a bit more intuitive to get the original exception without having the gotcha of checking ``isinstance`` inside the error handler.
* [commands] Fix issue with proper local error handlers not beign called.Rapptz2016-06-101-1/+1
|
* [commands] Unify Command.handle_local_error into general dispatcher.Rapptz2016-06-052-9/+11
|
* [commands] Add Command.qualified_name to get the full command name.Rapptz2016-06-042-16/+36
| | | | This also sets `__str__` to do the same thing.
* [commands] Fix bug where Context.command would not update.Rapptz2016-06-042-1/+2
|
* [commands] Fix bug where subgroups would be repeatedly called.Rapptz2016-06-041-2/+6
| | | | | | | This happened due to not resetting the `invoked_subcommand` state tracking. Since the `invoked_subcommand` was not reset, it would always assume that it was valid and repeatedly call it when passed invalid subcommands/arguments.
* [commands] Cleanup Command.invoke code due to exception propagation.Rapptz2016-06-041-14/+8
|
* [commands] Dispatch command_error on command exec error.Khazhismel Kumykov2016-06-042-64/+81
| | | | | | Provide fallback on_command_error - will only fire if no cog handlers and no local handler. Propagate exceptions in checks and argument parsing to bot.
* [commands] Delete frame objects when done using them.Rapptz2016-05-311-3/+7
|
* [commands] Add support for self-bots.Rapptz2016-05-311-2/+8
|
* [commands] Fix when_mentioned when handling nicknames.Rapptz2016-05-011-1/+4
|
* [commands] Allow role mentions to work with discord.Role params.Rapptz2016-04-291-2/+6
| | | | | This also fixes the Member regex to support the new <@!user_id> syntax and allows colours to have a leading # before the number.
* Begin working on gateway v4 support.Rapptz2016-04-272-3/+3
| | | | | | Bump websockets requirement to v3.1 Should be squashed...
* [commands] Make sure that mentions are the entire string.Rapptz2016-04-231-2/+2
|
* [commands] CommandError derived exceptions in checks don't crash help.Rapptz2016-04-131-1/+5
|
* [commands] Add deterministic cog unloading.Rapptz2016-04-041-0/+10
| | | | | The special function is `__unload` to prevent with name conflicts with existing or future cogs.
* [commands] Fix pagination logic a little inside HelpFormatter.Rapptz2016-04-021-10/+10
| | | | This should prevent pages accidentally reaching >2k chars.
* [commands] Refactor special cased discord.py converters.Rapptz2016-04-011-40/+77
| | | | | | | Code is a little more straightforward. The Member and Channel special cases will now work in private message contexts when given a name. The Member special case will also work if you pass in a name and discriminator combo.
* [commands] Don't yield from inside bot utility functions.Rapptz2016-03-311-14/+5
|
* [commands] Fix infinite recursion on subgroups without a command.Will Tekulve2016-03-311-1/+1
| | | | | Just as an FYI, ctx.invoked_subcommand will end up being an instance of commands.Group!
* [commands] Add bot decorators into __all__.Rapptz2016-03-111-1/+2
|
* [commands] Add when_mentioned_or helper to have mentions and prefixes.Rapptz2016-03-052-1/+22
|
* [commands] Fix typo in Bot.upload docstring.Rapptz2016-03-021-1/+1
|
* [commands] Fix NameError in bot_has_permissions.Rapptz2016-03-021-1/+1
|
* [commands] bot_has_permissions decorator actually checks for bot.Rapptz2016-03-021-1/+1
|
* [commands] Do not swallow AttributeErrors raised by the setup functionRapptz2016-02-241-4/+3
|
* [commands] Helper functions now take *args and **kwargs.Rapptz2016-02-181-30/+24
|
* [commands] Raise RuntimeError instead of StopIteration.Rapptz2016-02-061-2/+3
|
* [commands] Fix crash when a group has no commands and help is requestedRapptz2016-01-301-1/+3
|
* [commands] Change signature convention to use POSIX standards.Rapptz2016-01-291-4/+9
|
* [commands] Raise TypeError if the name is not a string.Rapptz2016-01-291-0/+3
|