aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
Commit message (Collapse)AuthorAgeFilesLines
* [tasks] set internal task to None after cancelingSteve C2019-04-121-0/+1
|
* [tasks] Add before_loop and after_loop decoratorsRapptz2019-04-121-16/+79
|
* [commands] Add versionadded to dm_onlyRapptz2019-04-121-0/+2
|
* [tasks] Ensure total number of seconds is not less than 0.Rapptz2019-04-111-3/+6
|
* [tasks] Rename Loop.run to Loop.start to avoid blocking connotationsRapptz2019-04-111-3/+3
|
* [tasks] Add a new background helper 'tasks' extension.Rapptz2019-04-111-0/+209
|
* [commands] Fix erroneous string in dm_only checkRapptz2019-04-111-1/+1
|
* [commands] Added dm_only checkDante Dam2019-04-112-7/+29
| | | | Raises PrivateMessageOnly on failure.
* [commands] Fix references in Bot to actually link.Rapptz2019-04-101-5/+2
| | | | Exceptions can't seem to link due to a bug in Sphinx.
* [commands] Properly name heading for ExtensionErrorRapptz2019-04-101-2/+2
|
* [commands] Raise TypeError instead of ClientException in some placesRapptz2019-04-072-18/+18
| | | | | | | 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.
* [commands] Remove extraneous `or`Rapptz2019-04-061-1/+1
|
* [commands] Fix HelpCommand.invoked_with when used in events.Rapptz2019-04-061-2/+3
|
* Add helpers to escape markdown and mentions from text.Rapptz2019-04-061-6/+2
| | | | Fixes #1673
* [commands] Disallow bot_ or cog_ commands or listeners in cogs.Rapptz2019-04-061-1/+5
|
* [commands] Raise BadArgument in ColourConverter when using from_hsv/rgbRapptz2019-04-061-2/+3
| | | | Fixes #2043
* Only escape characters as necessary in clean_contentCapnS2019-04-061-10/+5
| | | | Fixes #1885
* Redesign asset retrieval in the library.NCPlayz2019-04-061-1/+2
| | | | | | | | | | | 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
* [commands] Fix MinimalHelpCommand opening note signature consistencyRapptz2019-03-241-4/+4
|
* [commands] Double underscore some attributes.Rapptz2019-03-241-16/+16
|
* [commands] Add HelpCommand.invoked_withRapptz2019-03-241-2/+22
| | | | | This fixes an issue where the context invoked_with does not match the actual invoked with behaviour (e.g. using Context.send_help).
* [commands] Add Command.cooldown_after_parsing keyword argument.Rapptz2019-03-221-5/+17
| | | | | This controls the behaviour of cooldown execution order. This does not change the default behaviour however.
* [commands] Ensure handlers are copied even during update.Rapptz2019-03-201-12/+15
| | | | Fix #2001
* Try to consistently use "inherit" vs "derive" in documentation.Rapptz2019-03-194-14/+14
|
* [commands] Redesign extension exception flow.Rapptz2019-03-192-21/+115
| | | | | | | | | | | | | | | | 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.
* [commands] Add Bot.reload_extension for atomic loading.Rapptz2019-03-191-43/+106
| | | | Also do atomic loading in Bot.load_extension
* [commands] ColourConverter raises if value is out of rangeJoshua B2019-03-191-0/+2
| | | | | changes make the `ext.commands.ColourConverter` Converter fail when user input is outside the acceptable value range 0x000000 - 0xFFFFFF
* Expose MetadataNCPlayz2019-03-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Organise documentationNCPlayz2019-03-196-43/+38
|
* [commands] Walk through MRO for Cog derived classes.Rapptz2019-03-171-23/+37
| | | | | | | This should support cog subclasses in a relatively consistent way in terms of expectations. Hopefully nothing is broken. Fixes #1950
* [commands] Make Bot.cogs and Bot.extensions read-only mappings.Rapptz2019-03-171-12/+23
| | | | | This also has the side effect of effectively documenting them for public use.
* Fix pagination of huge command help messages (> ~2,000 chars)slice2019-03-161-2/+12
| | | | | | | | | | Previously, calls to add_line in add_command_formatting of default help commands would fail if the command's help message would overflow the current page. This would also result in silent failure as the RuntimeError raised from add_line is never caught. This patch adds behavior that adds lines individually should it raise, which guarantees safe pagination as long as every line is smaller than the maximum page size, which is highly unlikely.
* Fix documentation linking issue in Messageables and ContextRapptz2019-03-161-5/+5
|
* [commands] Rename it to Context.send_help for consistency.Rapptz2019-03-161-2/+2
|
* [commands] Add Context.show_help helper to use the HelpCommand set.Rapptz2019-03-161-0/+67
| | | | Fixes #1983
* [commands] Optimise GroupMixin.get_command for the no space case.Rapptz2019-03-161-0/+4
| | | | Comes at a 30ns slowdown for the space case, however.
* [commands] Assign context inside HelpCommand.prepare_help_commandRapptz2019-03-161-3/+9
|
* [commands] Add HelpCommand.get_bot_mapping helper.Rapptz2019-03-161-5/+11
|
* [commands] Return result of send_group_help and send_command_helpRapptz2019-03-161-2/+2
|
* Change superclass to subclass in some documentationKaeptm Blaubaer2019-03-162-5/+5
|
* [commands] Add back dm_help tribool for the provided HelpCommandsRapptz2019-03-161-0/+42
| | | | Also add a dm_help_threshold integer to control the length.
* [commands] Add commands.Paginator.__len__Rapptz2019-03-161-0/+10
|
* [commands] Redesign HelpFormatter into HelpCommandRapptz2019-03-155-476/+1189
| | | | Part of #1938
* [commands] Add Cog.description to get the clean docstring.Rapptz2019-03-141-0/+9
|
* [commands] Add Cog.qualified_name to query the specified cog name.Rapptz2019-03-131-0/+5
|
* [commands] Properly handle typing.Optional as last positional parameterHarmon2019-03-131-0/+2
|
* [commands] Support staticmethod listeners and disallow them in commandsRapptz2019-03-121-5/+18
|
* [commands] Refactor quoted_word free function to a StringView method.Rapptz2019-03-122-88/+85
| | | | | Technically a breaking change, however this interface was not documented or guaranteed to exist.
* [commands] Separate view parsing errors from BadArgument.Rapptz2019-03-122-6/+60
| | | | | | | | This causes them to be raised from a new exception named ArgumentParsingError with 3 children for ease with i18n. This is technically a breaking change since it no longer derives from BadArgument, though catching UserInputError will prevent this change from affecting the user.
* Small inconsistency in documentationSkyweb2019-03-081-1/+1
| | | :)