Stocker
8fdd1f0d8f
[commands] Typehinted errors.py
2021-08-18 01:03:44 -04:00
AkshuAgarwal
6b6bcb92e6
Fix missing or broken versionadded in docstrings
...
This also documents BadFlagArgument.flag
2021-08-18 00:45:02 -04:00
Josh
1c63816cc0
[commands] Document / type-hint cooldown
2021-08-10 08:35:15 -04:00
z03h
c628224403
[commands] Add GuildStickerConverter
2021-08-10 08:31:20 -04:00
ToxicKidz
3cb539d91b
[commands] Document the thread converter
2021-07-07 20:15:18 -04:00
Alex Nørgaard
5a7cfb3ce6
[commands] Add ThreadConverter
2021-07-05 00:40:57 -04:00
Rapptz
a3d7e06f25
[commands] Add back CommandOnCooldown.type
2021-07-02 05:39:54 -04:00
Izhar Ahmad
2cd2d1d3ee
[commands] Rename missing_perms to missing_permissions
2021-06-28 00:05:08 -04:00
thetimtoy
3c2cf06e46
[commands] Add attr and parameter "argument" to BadInviteArgument
2021-06-27 23:38:07 -04:00
Tari
42bab370a7
[commands] Add BadColorArgument to __all__
2021-05-16 15:40:06 -04:00
Jay3332
d5e14eb715
[commands] Fix a minor grammar error in MaxConcurrencyReached
2021-05-07 07:38:44 -04:00
Josh
3864fb37a0
Fix various reference issues in documentation
...
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-05-06 07:51:07 -04:00
Rapptz
18bf3d3a7d
[commands] Actually expose the FlagError base error
2021-04-19 10:27:24 -04:00
Rapptz
ddb71e2aed
[commands] Initial support for FlagConverter
...
The name is currently pending and there's no command.signature hook
for it yet since this requires bikeshedding.
2021-04-19 10:25:08 -04:00
Nadir Chowdhury
5dec62f4c0
[commands] Add a converter for discord.Object
2021-04-16 08:18:57 -04:00
Josh
7f91ae8b67
[commands] use __args__ and __origin__ where applicable
2021-04-11 00:38:17 -04:00
Rapptz
27886e5aa4
[commands] Remove legacy ExtensionNotFound.original attribute
2021-04-10 15:52:53 -04:00
Sigmath Bits
68aef92b37
[commands]Add typing.Literal converter
2021-04-10 02:50:59 -04:00
Rapptz
99fc950510
Use f-strings in more places that were missed.
2021-04-08 06:02:47 -04:00
Rapptz
9d39b135f4
Modernize code to use f-strings
...
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00
Alex Nørgaard
68eb844d48
[commands] Add discord.Guild converter and GuildNotFound error
...
* Add discord.Guild converter and GuildNotFound error
* note for lack of disambiguation in Guilds with duplicate names, and removed the possibility of returning None
* edited converter to use `utils.get` over `utils.find` and docs edited with Converter and Exception.
2021-02-07 05:32:33 -05:00
Nihaal Sangha
69bdc3a184
Change copyright year to present
2021-01-15 05:28:11 -05:00
BeatButton
bc0e214b98
[commands] Correct ChannelNotFound docstring
2021-01-12 02:34:23 -05:00
Michael
93fa46713a
Fix and add documentation
2020-09-23 03:19:35 -04:00
Rapptz
0a7e2f7c2f
[commands] BadBooleanArgument -> BadBoolArgument
2020-09-04 08:47:07 -04:00
Simon Beal
6ebd2e13a1
[commands] Add subclasses of BadArgument for converters
2020-09-04 08:45:29 -04:00
jack1142
84098ed824
[commands] Add a new exception class for command registration errors
2020-06-28 03:48:07 -04:00
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
2020-06-28 03:45:58 -04:00
Rapptz
02397306b2
Drop superfluous zero in version related changes in the documentation
2020-01-21 03:47:56 -05:00
Rapptz
08c90668cd
[commands] Be more clear in the default error for MaxConcurrencyReached
2020-01-21 03:34:18 -05:00
Rapptz
bf84c63396
[commands] Add max_concurrency decorator
2020-01-21 03:26:41 -05:00
Rapptz
6071607176
Bump copyright year to 2020
...
Closes #2510
2020-01-19 20:03:00 -05:00
Rapptz
ae3dac0d59
[commands] Add check_any check to OR together various checks
2020-01-06 22:03:56 -05:00
Benjamin Mintz
0a21591d0c
[commands] Don't raise ExtensionNotFound for ImportErrors in modules
...
Now loading an extension that _contains_ a failed import will fail
with ExtensionFailed, rather than ExtensionNotFound.
2019-06-29 19:15:05 -04:00
NCPlayz
3c9bcc2851
Improve documentation
2019-06-07 19:27:46 -04:00
Rapptz
5a7b5cd14b
[commands] Allow passing of a message to NoPrivateMessage again.
...
Prevents an accidental breaking change.
2019-04-20 17:28:44 -04:00
Rapptz
919dbcafb3
Consistent use of __all__ to prevent merge conflicts.
2019-04-20 17:20:58 -04:00
Rapptz
6620fcc038
[commands] Consistently mention inheritance of exceptions.
2019-04-20 16:59:54 -04:00
Vexs
bb3ebc0ebc
[commands] Add custom exception classes for built-in checks
...
Added:
* MissingRole
* BotMissingRole
* MissingAnyRole
* BotMissingAnyRole
2019-04-20 16:45:37 -04:00
Dante Dam
aabbd5a446
[commands] Added dm_only check
...
Raises PrivateMessageOnly on failure.
2019-04-11 00:02:22 -04:00
Rapptz
ef0b2a1092
[commands] Properly name heading for ExtensionError
2019-04-10 00:59:02 -04:00
Rapptz
c30a366106
Try to consistently use "inherit" vs "derive" in documentation.
2019-03-19 09:23:12 -04:00
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.
2019-03-19 09:23:11 -04:00
Rapptz
560783c3d2
[commands] Separate view parsing errors from BadArgument.
...
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.
2019-03-12 05:27:34 -04:00
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
2019-01-28 22:22:50 -05:00
Rapptz
418048b98a
[commands] Fix up Greedy documentation a bit.
2018-09-24 04:22:09 -04:00
BeatButton
a4d1599ce9
Change docstrings to raw-strings
2018-09-14 22:55:27 -04:00
Hornwitser
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
...
Adjust whitespace to be consistent with the rest of the library.
2018-08-22 21:43:53 -04:00
Rapptz
da5776a358
[commands] Make ConversionError have the original error as an attribute
2018-07-20 05:54:51 -04:00
Rapptz
92dde9aef9
[commands] Add support for typing.Union as a converter
2018-07-20 05:51:43 -04:00