aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* [commands] Context.invoke will now return what the command returns.Rapptz2016-01-281-1/+2
|
* [commands] Context.invoke just invokes a command with no special case.Rapptz2016-01-281-5/+33
| | | | | | Previously it would both forward and invoke depending if there were no kwargs given. Now it just passes in the arguments to another command without doing any special casing on the no argument case.
* [commands] Fix typo on HelpFormatter.show_check_failure attribute.Rapptz2016-01-271-5/+5
|
* [commands] Fix discord.Invite special case handling in parameters.Rapptz2016-01-241-10/+16
| | | | | | This led to decorating a lot of things into @asyncio.coroutine. Unfortunately there's no way to lower the amount of decoration since coroutines spread like a virus.
* [commands] Allow setting the bot error messages in the help command.Rapptz2016-01-231-4/+15
| | | | This is to help out those folks that don't speak English.
* [commands] Add Bot.help_attrs to customise the help command.Rapptz2016-01-232-4/+18
| | | | | The help message now uses the invoked_with attribute of the context to get the name of the command it uses instead of a hardcoded help.
* [commands] Change Bot.pm_help to be an optional bool.Rapptz2016-01-231-4/+14
| | | | | | The behaviour of passing in pm_help=None makes it so the bot will only send private messages if the length of the message is too "big", which is defined as having more than 1000 characters in the output.
* [commands] Add Command.no_pm attribute to block a command in PM.Rapptz2016-01-221-0/+10
|
* [commands] help command now uses the full name in the signature.Rapptz2016-01-171-3/+19
|
* [commands] Fix indentation error in commands.bot_has_role docstring.Rapptz2016-01-161-2/+3
|
* [commands] Add checks for checking bot roles and permissions.Rapptz2016-01-151-2/+38
| | | | | | There was a bug with has_permissions that checked the bot's permissions instead of the message author which was also corrected. The docstring itself hinted that it checked for the author rather than the bot.
* [commands] Add on_command and on_command_completion events.Rapptz2016-01-141-1/+4
|
* [commands] Change behaviour of consume rest to be more useful.Rapptz2016-01-141-7/+22
| | | | | You can get back the old behaviour by passing in `rest_is_raw` to the command attributes.
* [commands] Fix issue where Bot would raise if not given a description.Rapptz2016-01-141-1/+1
|
* [commands] Cleanup descriptions being passed.Rapptz2016-01-132-2/+2
|
* Proper exception chaining.Rapptz2016-01-132-6/+6
|
* [commands] Fix handling of nested subcommand help handling.Rapptz2016-01-121-5/+15
|
* [commands] Fix keyword-only case to actually do conversion.Rapptz2016-01-121-6/+11
|
* [commands] Support invoking the help command with a cog name.Rapptz2016-01-122-12/+43
|
* [commands] Initial implementation of help command.Rapptz2016-01-114-8/+377
|
* [commands] Add Command.cog_name to get the cog name it belongs to.Rapptz2016-01-111-1/+7
|
* [commands] Add Command.clean_params to have nicer params.Rapptz2016-01-101-0/+18
| | | | | | | | These are params without the self/context parameters. Useful for showing signature information in the help command without being bogged down by knowing if the self/context parameters are there. Hence it makes it easier to iterate knowing that you shouldn't care about those two parameters.
* [commands] Remove all aliases if the main command is being deleted.Rapptz2016-01-101-1/+9
|
* [commands] Strip arguments before searching for special cases.Rapptz2016-01-101-3/+4
|
* [commands] Proper cleanup of cogs.Rapptz2016-01-101-1/+3
|
* [commands] Add Group.invoke_without_command.Rapptz2016-01-101-10/+35
|
* [commands] Add basic support for extensions.Rapptz2016-01-092-1/+58
|
* [commands] Inject the internal variables for bot.say & co explicitly.Rapptz2016-01-092-19/+36
| | | | | This is to catch cases where it wouldn't fail to find it when inspecting the stack to catch these stack variables.
* [commands] Add local error handlers.Rapptz2016-01-091-0/+37
|
* [commands] Propagate invoked_with to subcommands.Rapptz2016-01-091-0/+1
|
* [commands] Add support for cogs.Rapptz2016-01-092-6/+128
| | | | | | Cogs are basically class instances that have commands and event listeners. They allow for better organisation and grouping of commands and state. Similar to subclassing discord.Client.