aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
Commit message (Collapse)AuthorAgeFilesLines
* Document raises for Converter.convertJames2020-07-081-0/+8
|
* Add a licence and encoding declaration to missing filesJames2020-07-081-0/+26
|
* [commands] Raise TypeError when Optional is used with Greedy converterSebastian Law2020-06-281-0/+4
|
* [tasks] Fix issue with default error handler in class contextJosh2020-06-281-1/+2
|
* [commands] Add a new exception class for command registration errorsjack11422020-06-282-5/+30
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-286-47/+76
|
* Prepare for the discord.com domain renameRapptz2020-05-231-1/+1
|
* Aliases passed as a list or as a tupleSaphielle Akiyama2020-05-101-2/+2
| | | Nothing too important, felt like some people would appreciate it;
* [tasks] Allow Loop.cancel in Loop.before_loopSteve C2020-05-101-0/+1
| | | | | Task cancel raises on the next awaited coro, so I've added this 0-sleep "hack" I'm internally debating if leaving the comment there, but I'm sure it would confuse the uninformed of this trick.
* [commands] Document that cog_command_error must be asyncXua2020-05-101-2/+2
|
* Escape backslashes in display name in `clean_prefix`jack11422020-05-071-1/+1
|
* [tasks] Fix tasks decorators being discardedSteve C2020-05-071-0/+3
| | | | | At this moment, when a task seems to be first loaded, it immediately throws away the decorators you give it, and just generates a new instance of itself. In your cog's `__init__`, once you do `self.my_task.start()`, the Loop is remade when it gets to `self.my_task` before executing the `start` function. The original Loop that the cog starts with is where the decorated values are. This fixes that.
* [tasks] Replace stack-based implementation with a cleaner one.Rapptz2020-04-141-37/+6
|
* [tasks] Create different Loop objects for different instancesRapptz2020-04-141-2/+44
| | | | Fixes #2294
* [commands] Raise CheckFailure if all bot "check once" failRapptz2020-04-061-0/+2
| | | | Fix #2643
* [commands] Stop yielding duplicate commands from walk_commandsMarkKoz2020-04-061-2/+6
|
* Allow for optional custom error handler in tasks extensionJosh B2020-04-041-6/+38
|
* Remove extra to in tasks docsEpic2020-04-041-1/+1
|
* [tasks] Add is_running property to LoopJames2020-04-041-0/+7
|
* [commands] Implement `commands.before/after_invoke`NCPlayz2020-04-041-8/+97
|
* [commands] Fix a typo in the docstring of the internal _Semaphore classs0lst1ce2020-04-041-1/+1
|
* [commands] Raise when passing invalid permission keys in their checksRapptz2020-02-021-4/+24
|
* Import ABC from collections.abc instead of collectionsKarthikeyan Singaravelan2020-01-251-1/+1
| | | | This is for Python 3.9 compatibility.
* Fix warnings regarding invalid escape sequences.Karthikeyan Singaravelan2020-01-251-1/+1
|
* Fixes and improvements for v1.3 documentationHarmon2020-01-221-2/+5
| | | | | | | | | * Add missing versionadded strings for v1.3 * Add missing versionchanged string for Message.edit * Consistently use versionadded for attributes * Consistently use versionchanged for parameters * Use versionchanged for Bot.is_owner * Fix references in v1.3 changelog * Improve grammar in v1.3 changelog
* Improve usability of utils.sleep_untilJosh B2020-01-211-6/+0
| | | | | | | | | Fix issue where sleeping for an extended period on python 3.5 would cause an exception Add sleep_until to API docs Add result argument to sleep_until
* [commands] Only clean semaphore when there are no waitersRapptz2020-01-211-1/+4
|
* [commands] Implement Command.__call__Rapptz2020-01-211-0/+18
|
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-214-26/+26
|
* [commands] Be more clear in the default error for MaxConcurrencyReachedRapptz2020-01-211-1/+1
|
* [commands] Refactor BucketType to not repeat in other places in codeRapptz2020-01-211-39/+24
|
* [commands] Add max_concurrency decoratorRapptz2020-01-213-1/+204
|
* [tasks] Use new sleep_until util instead of internal functionRapptz2020-01-211-6/+2
|
* [tasks] Fix issue with next_iteration when task overruns time allottedJosh B2020-01-211-3/+7
|
* [tasks] Add Loop.next_iteration propertyJosh B2020-01-201-1/+26
|
* [commands] Allow @ prefixed usernames in DM contexts for UserConverterHugo Woesthuis2020-01-201-2/+7
| | | | | | | Previously the argument '@user#0000' return None. To fix this, as this is a common user error, an extra check was added to remove the first character from the argument if this is an '@'. Discord names may not contain an '@' anyways.
* Bump copyright year to 2020Rapptz2020-01-1911-11/+11
| | | | Closes #2510
* [commands] Case insensitivity uses casefold instead of lowerRapptz2020-01-191-6/+6
| | | | | There seems to be very little performance regression in doing so (+5ns) so might as well go for the more correct behaviour.
* [commands] Document BucketType separatelyRapptz2020-01-181-10/+2
|
* [commands] Context.send_help properly sends to on_help_command_errorRapptz2020-01-181-10/+22
|
* [commands] Add missing async in documentationapple502j2020-01-141-1/+1
|
* [commands] Force the predicate attribute in checks to be a coroutineRapptz2020-01-141-53/+12
|
* Patch clean_prefix for new text editorMichael H2020-01-141-1/+2
| | | The new editor seems to force mentions to have ! even without a nick.
* [commands] Add check_any check to OR together various checksRapptz2020-01-062-0/+91
|
* [commands] Document the changed Command.can_run behaviourRapptz2020-01-061-1/+5
|
* [commands] Make Command.can_run process disabled commandsRapptz2020-01-061-8/+6
|
* [commands] Add predicate attribute to checks to get inner functionRapptz2019-12-181-0/+67
|
* [commands] Make Greedy ignore parsing errors.Rapptz2019-12-171-16/+16
|
* [commands] check if prefix is None in .pagesStarrFox2019-12-171-1/+1
|
* [commands] Add guild-based permission checksXua2019-12-171-0/+48
|