aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
Commit message (Collapse)AuthorAgeFilesLines
* Add version information from missing PRs.Rapptz2019-08-111-1/+1
|
* [tasks] Add support for explicit time parameter when running.Rapptz2019-08-111-14/+92
| | | | Fixes #2159
* [commands] Add role cooldown bucketBluePhoenixGame2019-08-112-1/+11
|
* [tasks] Add Loop.exception for more reliable exception retrieval.Rapptz2019-07-271-1/+14
|
* [commands] Properly load the original module when reloading fails.Rapptz2019-07-271-2/+3
| | | | Fix #2291
* [commands] update sys.modules in load_extension againBenjamin Mintz2019-07-181-1/+5
| | | | | 6f71552c508c61d9b6bf024fc259063ad056b7c4 introduced a regression: loading a module that is not in a package does not add it to sys.modules. Updating sys.modules is required after all.
* [commands] Bot.is_owner should be marked as coroutineed5882019-07-181-1/+3
|
* [commands] Fall back to using Message.mentions in convertersRapptz2019-07-101-2/+4
| | | | Useful if there's no cache.
* [commands] Don't update sys.modules with a stale reference.Rapptz2019-07-071-1/+1
|
* [commands] Fix up Paginator documentation.Rapptz2019-06-291-2/+2
| | | | These aren't optional.
* [commands] Calculate suffix length at each add_lineMatt (IPv4) Cowley2019-06-291-3/+7
|
* [commands] Properly raise the correct exception for owner_idsRapptz2019-06-291-14/+14
| | | | Also some minor nits with documentation.
* [tasks] Removed Returns from decorator docstringNihaal2019-06-291-6/+1
|
* [commands] Don't raise ExtensionNotFound for ImportErrors in modulesBenjamin Mintz2019-06-292-17/+23
| | | | | Now loading an extension that _contains_ a failed import will fail with ExtensionFailed, rather than ExtensionNotFound.
* Support team members data in application infofourjr2019-06-291-4/+27
|
* [commands] Add missing word in HelpCommand documentationHarmon2019-06-201-1/+1
|
* [commands] Ensure cooldowns are properly copied.Rapptz2019-06-121-3/+4
|
* Some documentation touch-ups and missing stuff in the changelog.Rapptz2019-06-091-0/+2
|
* Replace Enum with an internal one for significant speed improvements.Rapptz2019-06-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been a massive pain point for me personally due to the poor design of the Enum class leading to the common use cases used in the library being significantly slow. Since this Enum is not public facing in terms of *creation*, I can only implement the APIs that are used when *accessing* them. This Enum is a drop-in replacement to the pre-existing enum.Enum class except it comes with significant speed-ups. Since this is a lot to go over, I will let the numbers speak for themselves: In [4]: %timeit enums.try_enum(enums.Status, 'offline') 263 ns ± 34.3 ns per loop (7 runs, 1000000 loops each) In [5]: %timeit NeoStatus.try_value('offline') 134 ns ± 0.859 ns per loop (7 runs, 10000000 loops each) In [6]: %timeit enums.Status.offline 116 ns ± 0.378 ns per loop (7 runs, 10000000 loops each) In [7]: %timeit NeoStatus.offline 31.6 ns ± 0.327 ns per loop (7 runs, 10000000 loops each) In [8]: %timeit enums.Status.offline.value 382 ns ± 15.2 ns per loop (7 runs, 1000000 loops each) In [9]: %timeit NeoStatus.offline.value 65.5 ns ± 0.953 ns per loop (7 runs, 10000000 loops each) In [10]: %timeit str(enums.Status.offline) 630 ns ± 14.8 ns per loop (7 runs, 1000000 loops each) In [11]: %timeit str(NeoStatus.offline) 253 ns ± 3.53 ns per loop (7 runs, 1000000 loops each) In [12]: %timeit enums.Status('offline') 697 ns ± 8.42 ns per loop (7 runs, 1000000 loops each) In [13]: %timeit NeoStatus('offline') 182 ns ± 1.83 ns per loop (7 runs, 10000000 loops each)
* Improve documentationNCPlayz2019-06-078-40/+45
|
* [commands] Fixed extra "only" in dm_only docsDante Dam2019-05-191-1/+1
|
* Add asyncio.Task subclass for better __repr__ for events.Rapptz2019-05-191-2/+1
|
* [tasks] Add version added note to Loop.change_intervalSuhail2019-05-191-0/+2
|
* [commands] Add missing backtick for is_nsfw docsDante Dam2019-05-171-1/+1
|
* [tasks] Add way to change interval at run-timeSuhail6inkling2019-05-171-10/+37
| | | | PR: #2162 Fixes: #2158
* [tasks] Add indicator for internal task failureRapptz2019-05-131-2/+12
| | | | Fixes #2151
* [tasks] Log exception when something failed to logging.Rapptz2019-05-131-0/+6
|
* [tasks] Return coro from before and after decoratorsSnowyLuma2019-05-131-1/+2
|
* [tasks] Keep retrying before gracefully exiting.Rapptz2019-05-121-2/+10
|
* [tasks] Add Loop.stop to gracefully stop a task.Rapptz2019-05-121-0/+17
| | | | Updated docs will follow shortly.
* [tasks] Reset iteration count when loop terminates.Rapptz2019-05-121-0/+1
|
* [commands] Explicitly assign invoked_subcommand to None before invokingRapptz2019-05-111-0/+2
| | | | | This should fix instances of it not working as expected in nested groups.
* Fix typo in Loop.restart documentationSteve C2019-05-101-1/+1
|
* [tasks] Add Loop.restartRapptz2019-05-101-1/+28
| | | | | | | This implementation waits until the task is done before starting it again. Closes #2075
* [commands] MinimalHelpCommand: add cog descriptionBenjamin Mintz2019-05-091-0/+3
|
* [commands] Better note for Command.invokeRapptz2019-05-051-6/+11
|
* [tasks] Add way to query cancellation state for Loop.after_loopRapptz2019-04-301-8/+20
| | | | Fixes #2121
* [commands] Fix MessageConverter not inheriting from ConverterRapptz2019-04-291-1/+1
| | | | Closes #2126
* [tasks] Remove support for awaitables due to gotchas.Rapptz2019-04-291-17/+17
| | | | Fixes #2079
* [commands] Fix Context.send_help to work with the copied HelpCommandRapptz2019-04-291-0/+2
|
* [commands] Copy HelpCommand instances to prevent race conditions.Rapptz2019-04-291-29/+52
| | | | | | | | Fixes #2123 Slight breaking change if someone had an expectation that no copies were made behind the scene (which is sensible), however writing code that relies on this expectation is probably buggy anyway.
* [commands] Allow passing `current` to more cooldown mapping methods.Rapptz2019-04-242-5/+9
| | | | Also adds a CooldownMapping.update_rate_limit helper function.
* [commands] Allow passing of a message to NoPrivateMessage again.Rapptz2019-04-202-4/+5
| | | | Prevents an accidental breaking change.
* [commands] DM channels are NSFW in commands.is_nsfw check.Rapptz2019-04-201-2/+3
|
* Consistent use of __all__ to prevent merge conflicts.Rapptz2019-04-206-24/+82
|
* [commands] Clean docstrings in Command.parents and Command.root_parentRapptz2019-04-201-7/+3
|
* [commands] Consistently mention inheritance of exceptions.Rapptz2019-04-201-12/+45
|
* [commands] Add Command.parentsVexs2019-04-201-8/+22
| | | | Make command.root_parent use new command.parents property
* [commands] Add custom exception classes for built-in checksVexs2019-04-202-47/+217
| | | | | | | | Added: * MissingRole * BotMissingRole * MissingAnyRole * BotMissingAnyRole
* [commands] Missing an extra ] in the documented return type.Rapptz2019-04-191-1/+1
|