Rapptz
b44bba6ee6
First pass at documentation reform.
8 years ago
Rapptz
d7478425ca
[commands] Converter.convert is always a coroutine.
Along with this change comes with the removal of Converter.prepare and
adding two arguments to Converter.convert, the context and the argument.
I suppose an added benefit is that you don't have to do attribute
access since it's a local variable.
8 years ago
Rapptz
8ef984746a
[commands] Fix default error handler to work with the switch.
8 years ago
Rapptz
a2c9cefac9
[commands] Re-order error handler arguments.
They now have Context as the first argument to be consistent with other
context-passing functions.
8 years ago
Rapptz
c20ba51e28
[commands] Export is_nsfw check.
8 years ago
Rapptz
c8937ed2aa
[commands] Add is_nsfw check.
8 years ago
Rapptz
37681dd0ea
[commands] Fix lack of space in when_mentioned
8 years ago
Rapptz
6188397fc9
[commands] Add Context.voice_client shortcut.
8 years ago
Rapptz
c005ef5d44
[commands] Make when_mentioned always have both mention formats.
This will allow it to work in mobile clients which don't respect the
<@!id> format in case of nicknames.
8 years ago
Rapptz
b6ac856868
[commands] Allow loading cogs from folders.
Internally, instead of using module objects just use the `__module__`
attribute which is the same thing. From preliminary testing this seems
to work fine with both regular one-file-per-cog approaches and the
folder cog approach.
Fixes #126 .
8 years ago
Rapptz
3e15f46dcf
[commands] Bot.get_all_emojis no longer exists.
8 years ago
Rapptz
7da0884bfb
[commands] Export missing built-in converters.
8 years ago
Rapptz
e1c32626ba
[commands] Fix User converter not working with IDs.
8 years ago
Rapptz
5c5e7ae1d6
[commands] Add is_owner check and Bot.is_owner.
8 years ago
Rapptz
afb64fb5e3
[commands] Remove Command.no_pm for commands.guild_only check.
This is a breaking change. The original purpose of no_pm has been
mainly a legacy aspect. They came from a time before checks were a
generalised concept and were never removed. A check is the proper way
to do its behaviour.
8 years ago
Rapptz
9885a946e1
More robust cleanup for Client.run.
This should prevent asyncio.CancelledError from being propagated more
and suppressed "Task was destroyed but was pending!" warnings when
doing graceful closes outside of using a KeyboardInterrupt.
To make clean up a bit more robust, also add signal handlers
for POSIX systems.
8 years ago
Rapptz
31a7093433
[commands] Fix minor spacing issue in Command.signature
8 years ago
Rapptz
3087600c8d
[commands] Add Command.signature
This replaces HelpFormatter.get_command_signature for the most part.
8 years ago
Rapptz
54fdafb792
[commands] Add BotBase.get_cog_commands to get all a cog's commands.
Self-explanatory. This should help create help commands for a cog
more easily.
8 years ago
Rapptz
fe588a4d52
[commands] Change GroupMixin.commands to all_commands
This is a breaking change as GroupMixin.commands now returns a set
of unique Command objects.
8 years ago
Rapptz
98cfb53d3b
[commands] Add Context.me property.
8 years ago
Rapptz
9cb89f019e
[commands] Register cog listeners with the name of the attribute.
8 years ago
Rapptz
c6d26216a6
[commands] Fix bad logic in command list filtering.
8 years ago
Rapptz
6166cbc2e7
[commands] Add commands.clean_content converter.
8 years ago
Rapptz
e10cae5dbc
[commands] Allow converters to be instantiated.
This allows for you to create converters that can have varying
behaviour using the converter's __init__ instead of having to do a
meta-class based approach to get around the fact that __init__ is part
of the interface.
To make up for the lack of __init__, a new method Converter.prepare was
added to do the work that __init__ used to do.
8 years ago
Rapptz
b6bff5172a
[commands] Remove Commands: if no commands can be run in help command.
8 years ago
Rapptz
bf11bb4b4f
[commands] Add cog local error handlers via __error.
8 years ago
Rapptz
7bc3750c27
[commands] Add param attribute to MissingRequiredArgument
This should allow easier querying on what argument is missing.
Fixes #470 .
8 years ago
Rapptz
47ef657fbd
Implement async checks. Fixes #380 .
8 years ago
Michael Van Buren
84dfd7b3e3
[commands] Add Command.usage argument to override argument display.
8 years ago
Rapptz
f8d19ae7ba
[commands] Better support for retrieving children commands.
* GroupMixin.get_command now supports fully qualified names
* Add GroupMixin.walk_commands to get an iterator of all commands.
8 years ago
Rapptz
aac769eb56
[commands] Fix converters returning the wrong types when an ID is passed
8 years ago
Rapptz
1c49374210
[commands] Implement before and after invoke command hooks.
Fixes #464 .
8 years ago
Rapptz
8fa50a8f3e
[commands] Add Context.command_failed attribute.
8 years ago
Rapptz
12c1cd9b14
[commands] Add cog local checks via __local_check
8 years ago
Rapptz
0e1bd1647e
[commands] Rename __check to __global_check for cogs.
8 years ago
Rapptz
4016154529
[commands] Allow customising the Context class in get_context.
8 years ago
Rapptz
234fd5180f
Optimise attribute access when dispatching.
8 years ago
Rapptz
ff9f5749e1
Update copyright year to 2017.
8 years ago
Rapptz
ea72d5e63d
[commands] Guarantee that local error handler is called before generic.
8 years ago
Rapptz
11b54d67c9
[commands] Change UserConverter to actually work with User, not Member.
8 years ago
Rapptz
92dd519b1a
Remove _get_guild_id from Messageable ABC.
8 years ago
Rapptz
ce9d5b4f4a
[commands] Split process_commands into lower level bits.
8 years ago
Rapptz
695b62ccd3
[commands] Make Command a descriptor for #426 .
8 years ago
Rapptz
d22d8cc430
[commands] Add AutoShardedBot counterpart to AutoShardedClient.
8 years ago
Rapptz
3f06cf9e81
[commands] Don't use removed is_private attribute in core decorators.
8 years ago
Rapptz
496f5d0472
[commands] Fix help command from not working with recent changes.
8 years ago
Rapptz
7431a127cf
Change Messageable channel getter to be a coroutine.
8 years ago
Rapptz
d5b616fa11
Rename MessageChannel abc to Messageable.
8 years ago
Rapptz
20ddc9f14f
[commands] Remove send_ utility functions.
8 years ago