| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Change internal role storage in Guild to a dict instead of a list. | Rapptz | 2018-09-24 | 1 | -4/+7 |
| | | | | | | | | | | | | | | | | | This adds the following APIs: * Guild.get_role This removes the following APIs: * Guild.role_hierarchy To compensate for the removed APIs, Guild.roles is now a sorted list based on hierarchy. The first element will always be the @everyone role. This speeds up access at the cost of some memory, theoretically. | ||||
| * | [commands] Fix up Greedy documentation a bit. | Rapptz | 2018-09-24 | 1 | -2/+2 |
| | | |||||
| * | [commands] Add commands.Greedy converter and documentation. | Rapptz | 2018-09-24 | 2 | -2/+79 |
| | | | | | | This allows for greedy "consume until you can't" behaviour similar to typing.Optional but for lists. | ||||
| * | [commands] Allow for backtracking parsing with typing.Optional | Rapptz | 2018-09-23 | 1 | -0/+10 |
| | | | | | | | | | | | Original code by zephyrkul. This new parsing mode allows for backtracking in case of failure when a typing.Union[..., NoneType] or a typing.Optional[...] is used. This means that if a type would fail to parse, the view is undo'd to a previous state, passing the default parameter to the callback, and then continuing on the next parameter as if nothing had happened. | ||||
| * | [commands] Properly parse bool when inside a typing.Union | zephyrkul | 2018-09-20 | 1 | -3/+3 |
| | | |||||
| * | Correct ClientException message raised in invocation hooks. | MusicOnline | 2018-09-20 | 2 | -4/+4 |
| | | | | | For when the hooks are not coroutines. | ||||
| * | Change docstrings to raw-strings | BeatButton | 2018-09-14 | 4 | -11/+11 |
| | | |||||
| * | [commands] Prepend mention prefixes in commands.when_mentioned_or | zephyrkul | 2018-08-28 | 1 | -1/+1 |
| | | |||||
| * | Fix typo in core.Command docstring | SilicalNZ | 2018-08-24 | 1 | -1/+1 |
| | | |||||
| * | [commands] Use eval instead of get_type_hints to resolve typehints | Rapptz | 2018-08-22 | 1 | -14/+19 |
| | | | | | | | | | | | | The previous usage of `typing.get_type_hints` caused issues as it would incorrectly decide to convert annotations into their equivalent `typing` form -- which is not what we want to happen here. Due to some use-cases about how setting `Command.callback` work and the amount of moving parts that have changed due to this patch, it is probably better to refactor the way it is set so users can have this use-case handled transparently for them. | ||||
| * | Bot.unload_extension: don't remove commands from no module | Ben Mintz | 2018-08-22 | 1 | -0/+2 |
| | | | | Fixes unload_extension in the case of a command added via eval | ||||
| * | Add support for converters working with PEP-563 | Bryan Forbes | 2018-08-22 | 1 | -0/+12 |
| | | |||||
| * | [lint] Fix incorrect and inconsistent whitespace | Hornwitser | 2018-08-22 | 6 | -12/+16 |
| | | | | | Adjust whitespace to be consistent with the rest of the library. | ||||
| * | [lint] Remove unnecessary lambdas | Hornwitser | 2018-08-22 | 1 | -1/+1 |
| | | | | | Lambdas of the form `lambda x: func(x)` are redundant. | ||||
| * | [lint] Remove unused variables | Hornwitser | 2018-08-22 | 1 | -1/+1 |
| | | | | | Left over from various refactoring and rewrites. | ||||
| * | [lint] Remove unused imports | Hornwitser | 2018-08-22 | 4 | -5/+1 |
| | | | | | Left over from various refactoring and rewrites. | ||||
| * | [commands] Handle nick mentions in HelpFormatter | Michael H | 2018-08-22 | 1 | -2/+2 |
| | | | | | | Modifies the help formatter to handle nicknamed bot users for mentions in clean_prefix | ||||
| * | [commands] Ignore bots from Bot.process_commands by default. | Rapptz | 2018-08-22 | 1 | -1/+7 |
| | | |||||
| * | [commands] Added BucketType.members for cooldowns | Clement | 2018-08-22 | 2 | -1/+5 |
| | | |||||
| * | [commands] Fix broken handling of keyword only parameters. | Rapptz | 2018-07-21 | 1 | -1/+1 |
| | | | | | Had a missing `param` argument in the new `do_conversion` code. | ||||
| * | [commands] Fix typing.Union converters for 3.7 | Rapptz | 2018-07-20 | 1 | -12/+17 |
| | | | | | Guido please don't break this | ||||
| * | [commands] Make ConversionError have the original error as an attribute | Rapptz | 2018-07-20 | 2 | -2/+6 |
| | | |||||
| * | [commands] Add support for typing.Union as a converter | Rapptz | 2018-07-20 | 2 | -5/+55 |
| | | |||||
| * | [commands] raise ConversionError on Converter error | khazhyk | 2018-07-20 | 2 | -26/+44 |
| | | | | | | | This assumes that a Converter class raising non-CommandError is a programmer error. Makes this type of error easier to disambiguate from a generic BadArgument. | ||||
| * | [commands] Change command_prefix behaviour | Hornwitser | 2018-06-29 | 1 | -17/+53 |
| | | | | | | | | | Change the behaviour of handling iterable command_prefix types to not silently ignore falsy prefixes and unify behaviour for all iterable types. Add special handling of a possible TypeError in both get_prefix and get_context for when the prefix is a different type from what is expected. | ||||
| * | Fix case insensitive command removal | Harmon | 2018-06-21 | 1 | -0/+3 |
| | | |||||
| * | Fix Bot.get_prefix second parameter breaking. | Rapptz | 2018-06-10 | 1 | -1/+1 |
| | | |||||
| * | Drop support for Python 3.4 and make minimum version 3.5.2. | Rapptz | 2018-06-10 | 5 | -167/+119 |
| | | |||||
| * | [commands] Don't handle single quotes. | Rapptz | 2018-03-20 | 1 | -2/+0 |
| | | |||||
| * | [commands] Minor optimisations to unicode quote handling. | Rapptz | 2018-03-06 | 1 | -3/+6 |
| | | |||||
| * | [commands] Added handling for unicode quotes | b-hodges | 2018-03-06 | 1 | -14/+43 |
| | | |||||
| * | [commands] Add ability to have case insensitive commands. | Rapptz | 2018-03-06 | 2 | -1/+28 |
| | | | | | | | | | | | This is powered by a dict-like class for the people who want to opt-in to the performance downgrade for usability for majority English speaking users. Since it is slower than the regular dict due to the excessive calls to str.lower along with the possibilities of gotchas for other languages outside of English, this is kept as False for the default case. | ||||
| * | [commands] Allow builtin unbound method converters | Eli | 2018-02-10 | 1 | -2/+7 |
| | | |||||
| * | Change PartialReactionEmoji to PartialEmoji, add a PartialEmojiConverter | Gorialis | 2018-01-06 | 1 | -2/+21 |
| | | |||||
| * | Add intersphinx | Tobotimus | 2018-01-06 | 6 | -47/+47 |
| | | |||||
| * | [commands] Fix MissingRequiredArgument param handling | khazhyk | 2018-01-06 | 1 | -2/+2 |
| | | | | | | Documentation was incorrect, and we were throwing away the param we were passing. | ||||
| * | [commands] Document that can_run can raise. | Rapptz | 2017-12-29 | 1 | -0/+6 |
| | | |||||
| * | [commands] Forbid passing a string to aliases in Command. | Rapptz | 2017-12-29 | 1 | -0/+4 |
| | | | | | Fixes #974 | ||||
| * | Add support for animated emoji to commands ext EmojiConverter | Joshua Butt | 2017-12-22 | 1 | -1/+1 |
| | | |||||
| * | [commands] Fix minor spelling mistake | S Stewart | 2017-11-20 | 1 | -1/+1 |
| | | |||||
| * | [commands] Minor speed-up for the BucketType.guild case. | Rapptz | 2017-10-08 | 1 | -1/+1 |
| | | | | | | | | | None case: 344ns ± 24.4ns -> 49.9ns ± 1.39ns Valid case: 128ns ± 2.76ns -> 42.7ns ± 0.459ns | ||||
| * | [commands] Make CooldownMapping.get_bucket take Message instead. | Rapptz | 2017-10-08 | 2 | -7/+6 |
| | | | | | | Requiring a full blown Context might be a bit overkill considering we only use a single attribute from it. | ||||
| * | [commands] Split Cooldown state processing to two different functions. | MysterialPy | 2017-10-03 | 2 | -8/+34 |
| | | | | | | This allows us to check if we are rate limited without creating a new cool-down window for the command. | ||||
| * | [commands] Add CategoryChannelConverter | Rapptz | 2017-09-13 | 1 | -1/+42 |
| | | |||||
| * | [commands] Fix NameError when given an invalid prefix. | Rapptz | 2017-09-12 | 1 | -1/+1 |
| | | | | | Closes #775 | ||||
| * | [commands] Have (bot_)has_permissions provide better failure responses | ReinaSakuraba | 2017-08-30 | 1 | -2/+21 |
| | | |||||
| * | [commands] Add MissingPermissions and BotMissingPermissions | ReinaSakuraba | 2017-08-30 | 1 | -1/+43 |
| | | |||||
| * | [commands] Add CooldownMapping.from_cooldown factory classmethod. | Rapptz | 2017-08-27 | 1 | -0/+4 |
| | | |||||
| * | [commands] Export cooldown classes as well. | Rapptz | 2017-08-27 | 1 | -1/+1 |
| | | |||||
| * | [commands] Raise when an invalid prefix is given. | Rapptz | 2017-08-15 | 1 | -5/+18 |
| | | | | | Fixes #712 | ||||