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
Dante Dam
1fac7a7e71
[commands] Add missing backtick for is_nsfw docs
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
Benjamin Mintz
0a0c43321b
[commands] MinimalHelpCommand: add cog description
6 years ago
Rapptz
bdea50e1db
[commands] Better note for Command.invoke
6 years ago
Rapptz
40cac30da1
[commands] Fix MessageConverter not inheriting from Converter
Closes #2126
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
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
Rapptz
015404b01c
[commands] Add versionadded to dm_only
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
Rapptz
aeabd0761e
[commands] Raise TypeError instead of ClientException in some places
Certain decorators and functions expect coroutines and raise an
exception when this is not met. Change these to raise the appropriate
TypeError since they can't actually be handled by the user gracefully
anyway.
6 years ago
Rapptz
47ab24991f
[commands] Remove extraneous `or`
6 years ago
Rapptz
ee81f0614e
[commands] Fix HelpCommand.invoked_with when used in events.
6 years ago
Rapptz
9833ea82e2
Add helpers to escape markdown and mentions from text.
Fixes #1673
6 years ago
Rapptz
743a5a218f
[commands] Disallow bot_ or cog_ commands or listeners in cogs.
6 years ago
Rapptz
e4de25eaab
[commands] Raise BadArgument in ColourConverter when using from_hsv/rgb
Fixes #2043
6 years ago
CapnS
24d3a5a48d
Only escape characters as necessary in clean_content
Fixes #1885
6 years ago
NCPlayz
be227ebcf0
Redesign asset retrieval in the library.
Most assets now return a new class named `Asset`. This allows for the
assets to be consistently saved via a `save` method instead of special
casing for `Attachment`.
`AppInfo` is no longer a namedtuple it is a fully documented dataclass,
as well as having the state attached to it.
Fixes #1997
6 years ago
Rapptz
43b44751af
[commands] Fix MinimalHelpCommand opening note signature consistency
6 years ago
Rapptz
e567b59fea
[commands] Double underscore some attributes.
6 years ago
Rapptz
8c0c410d0e
[commands] Add HelpCommand.invoked_with
This fixes an issue where the context invoked_with does not match the
actual invoked with behaviour (e.g. using Context.send_help).
6 years ago
Rapptz
c96642860c
[commands] Add Command.cooldown_after_parsing keyword argument.
This controls the behaviour of cooldown execution order. This does
not change the default behaviour however.
6 years ago
Rapptz
64d749a13f
[commands] Ensure handlers are copied even during update.
Fix #2001
6 years ago
Rapptz
c30a366106
Try to consistently use "inherit" vs "derive" in documentation.
6 years ago
Rapptz
d9e54d7dd3
[commands] Redesign extension exception flow.
Instead of raising a whole variety of exceptions, they are now wrapped
into ExtensionError derived classes.
* ExtensionAlreadyLoaded
* Raised when an extension is already loaded in Bot.load_extension
* ExtensionNotLoaded
* Raised when an extension is not loaded, e.g. Bot.unload_extension
* NoEntryPointError
* Raised when an extension does not have a `setup` function.
* ExtensionFailed
* Raised when an extension's `setup` function fails.
* ExtensionNotFound
* Raised when an extension's module import fails.
6 years ago
Rapptz
26e9b5bfac
[commands] Add Bot.reload_extension for atomic loading.
Also do atomic loading in Bot.load_extension
6 years ago
Joshua B
d221ca5f7d
[commands] ColourConverter raises if value is out of range
changes make the `ext.commands.ColourConverter` Converter fail when
user input is outside the acceptable value range 0x000000 - 0xFFFFFF
6 years ago
NCPlayz
f507f508a2
Expose Metadata
Added access to:
* `/users/@me/guilds`
* `/guilds/{guild_id}`
* `/guilds/{guild_id}/members/{member_id}`
BREAKING CHANGE:
* `get_user_info` -> `fetch_user_info` to match naming scheme.
Remove useless note
Remove `reverse` and corresponding documentation
Update documentation to reflect #1988
Rename `get_` HTTP functions to `fetch_`
Breaking Changes:
* `get_message` -> `fetch_message`
* `get_invite` -> `fetch_invite`
* `get_user_profile` -> `fetch_user_profile`
* `get_webhook_info` -> `fetch_webhook`
* `get_ban` -> `fetch_ban`
Fix InviteConverter, update migrating.rst
Rename get_message to fetch_message
6 years ago
NCPlayz
fb02191b80
Organise documentation
6 years ago