NCPlayz
3c9bcc2851
Improve documentation
6 years ago
Dante Dam
92731bbf5f
[commands] Fixed extra "only" in dm_only docs
6 years ago
Rapptz
82b54933e2
Add asyncio.Task subclass for better __repr__ for events.
6 years ago
Suhail
db9a293f14
[tasks] Add version added note to Loop.change_interval
6 years ago
Dante Dam
1fac7a7e71
[commands] Add missing backtick for is_nsfw docs
6 years ago
Suhail6inkling
aadb6953ff
[tasks] Add way to change interval at run-time
PR: #2162
Fixes : #2158
6 years ago
Rapptz
6bc9d7c01a
[tasks] Add indicator for internal task failure
Fixes #2151
6 years ago
Rapptz
a4a362b4c7
[tasks] Log exception when something failed to logging.
6 years ago
SnowyLuma
859ee751f9
[tasks] Return coro from before and after decorators
6 years ago
Rapptz
49a7e58d17
[tasks] Keep retrying before gracefully exiting.
6 years ago
Rapptz
4eead39b3c
[tasks] Add Loop.stop to gracefully stop a task.
Updated docs will follow shortly.
6 years ago
Rapptz
bcdecd4e07
[tasks] Reset iteration count when loop terminates.
6 years ago
Rapptz
f74d73327b
[commands] Explicitly assign invoked_subcommand to None before invoking
This should fix instances of it not working as expected in nested
groups.
6 years ago
Steve C
8f111c521c
Fix typo in Loop.restart documentation
6 years ago
Rapptz
47808a7e96
[tasks] Add Loop.restart
This implementation waits until the task is done before starting it
again.
Closes #2075
6 years ago
Benjamin Mintz
0a0c43321b
[commands] MinimalHelpCommand: add cog description
6 years ago
Rapptz
bdea50e1db
[commands] Better note for Command.invoke
6 years ago
Rapptz
91e00d8426
[tasks] Add way to query cancellation state for Loop.after_loop
Fixes #2121
6 years ago
Rapptz
40cac30da1
[commands] Fix MessageConverter not inheriting from Converter
Closes #2126
6 years ago
Rapptz
55e3e242ff
[tasks] Remove support for awaitables due to gotchas.
Fixes #2079
6 years ago
Rapptz
05d4f7f962
[commands] Fix Context.send_help to work with the copied HelpCommand
6 years ago
Rapptz
ad5beed8dd
[commands] Copy HelpCommand instances to prevent race conditions.
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.
6 years ago
Rapptz
6dcd68b8d7
[commands] Allow passing `current` to more cooldown mapping methods.
Also adds a CooldownMapping.update_rate_limit helper function.
6 years ago
Rapptz
5a7b5cd14b
[commands] Allow passing of a message to NoPrivateMessage again.
Prevents an accidental breaking change.
6 years ago
Rapptz
188bd4e708
[commands] DM channels are NSFW in commands.is_nsfw check.
6 years ago
Rapptz
919dbcafb3
Consistent use of __all__ to prevent merge conflicts.
6 years ago
Rapptz
c6410ea9ab
[commands] Clean docstrings in Command.parents and Command.root_parent
6 years ago
Rapptz
6620fcc038
[commands] Consistently mention inheritance of exceptions.
6 years ago
Vexs
bbf9a42f87
[commands] Add Command.parents
Make command.root_parent use new command.parents property
6 years ago
Vexs
bb3ebc0ebc
[commands] Add custom exception classes for built-in checks
Added:
* MissingRole
* BotMissingRole
* MissingAnyRole
* BotMissingAnyRole
6 years ago
Rapptz
4ca934eb22
[commands] Missing an extra ] in the documented return type.
6 years ago
Vexs
dd84773f45
[commands] Allow passing cls to the commands.group decorator
6 years ago
sirtezza451
dbe946a767
[commands] Update default on_command_error
6 years ago
Rapptz
296d4bf580
[commands] Add new MessageConverter to commands prose page.
6 years ago
retke
440db2a568
[commands] Add MessageConverter to fetch messages by URL or ID.
6 years ago
Danny
2a301a4eb4
[tasks] Fix assignment of tuple when appending
6 years ago
Rapptz
7a1102ccf0
[commands] Use message creation as the reference time in cooldowns
6 years ago
Rapptz
ec7a701ceb
[commands] Allow passing reference time to update_rate_limit
6 years ago
Rapptz
6574c97a8b
[commands] Support callables in Greedy converter
6 years ago
Rapptz
ac1b9f5628
[commands] Fix lambda converters in non-module contexts.
Not sure why anyone would do this but might as well fix it.
6 years ago
Steve C
ac2cda1ffc
[tasks] set internal task to None after canceling
6 years ago
Rapptz
e46842a7cd
[tasks] Add before_loop and after_loop decorators
6 years ago
Rapptz
015404b01c
[commands] Add versionadded to dm_only
6 years ago
Rapptz
4513dac7a3
[tasks] Ensure total number of seconds is not less than 0.
6 years ago
Rapptz
10bc939348
[tasks] Rename Loop.run to Loop.start to avoid blocking connotations
6 years ago
Rapptz
b0c7f48caf
[tasks] Add a new background helper 'tasks' extension.
6 years ago
Rapptz
ec1b3434a2
[commands] Fix erroneous string in dm_only check
6 years ago
Dante Dam
aabbd5a446
[commands] Added dm_only check
Raises PrivateMessageOnly on failure.
6 years ago
Rapptz
50dcdac5ca
[commands] Fix references in Bot to actually link.
Exceptions can't seem to link due to a bug in Sphinx.
6 years ago
Rapptz
ef0b2a1092
[commands] Properly name heading for ExtensionError
6 years ago