Commit Graph
3258 Commits
Author SHA1 Message Date
Rapptz 1a8d63d54f [commands] Remove Flag related delimiter and prefix error 2021-04-30 03:29:44 -04:00
Rapptz 58274eafbc [commands] Fix Generics causing other typing converters to fail 2021-04-30 01:23:56 -04:00
Rapptz 7b8db49efe Fix utils.MISSING not evaluating to True in implicit bool contexts 2021-04-30 01:05:01 -04:00
Rapptz 3b6a2b9e85 [commands] Fix Generic subcalsses used as a converter 2021-04-29 02:43:54 -04:00
Nadir ChowdhuryandGitHub cbbd31cc9f fix AttributeError in Sticker.image 2021-04-29 02:16:55 -04:00
Nadir ChowdhuryandGitHub c786a85a9b Add utils.MISSING 2021-04-29 01:58:36 -04:00
OliviaandGitHub a2df6e81b8 [commands] Update error message for Literal float/complex 2021-04-27 22:04:18 -04:00
pikaninjaandGitHub 56f4ae3a83 [docs] Update notes for get_user and get_member 2021-04-27 21:56:00 -04:00
apple502jandGitHub 127b3239e9 Fix AttributeError in examples 2021-04-27 08:09:01 -04:00
Rapptz 9f3551926a Split annotation resolution to discord.utils 2021-04-27 05:48:27 -04:00
Rapptz 69da87f455 [commands] Disallow float/complex in Literal but allow None
Type checkers (both mypy and pydantic) apparently don't like it
2021-04-27 05:48:27 -04:00
numbermaniacandGitHub b84717fc76 Make spelling of "colour" consistent in docs 2021-04-27 04:37:35 -04:00
ppotatooandGitHub f4a861d76e Add __int__ to discord.Colour 2021-04-26 21:38:20 -04:00
HyperGHandGitHub 686e531624 Adjust quickstart to not show commands example 2021-04-26 21:37:44 -04:00
JoshandGitHub 3c2674725a Add as_chunks helper function 2021-04-25 23:36:03 -04:00
Rapptz d60689a983 Properly change abc.User.avatar type to Asset 2021-04-25 23:30:30 -04:00
JoshandGitHub 20c2664a50 [docs] Remove extraneous icon definition 2021-04-25 19:21:09 -04:00
Nadir ChowdhuryandGitHub 1765cdffb1 Use Asset for AuditLogChanges and add more entries 2021-04-25 09:53:38 -04:00
JoshandGitHub 368fda7272 Remove HypesquadHouse enum from docs 2021-04-25 04:35:45 -04:00
JoshandGitHub 4fbc78ba81 [commands] Add support for typing.Union to Flags 2021-04-25 04:35:19 -04:00
Rapptz c250b9fc02 [commands] Fix regression with Union converters not working
This was due to the Literal restriction from earlier.
2021-04-24 09:33:35 -04:00
Rapptz 185b554a56 [commands] Disallow complicated Literal types 2021-04-24 09:12:28 -04:00
Rapptz fb024546ff [commands] Fix Literal converter not working within flags 2021-04-24 08:55:55 -04:00
Rapptz 1c312a158a [commands] Add FlagConverter.__iter__ 2021-04-24 08:53:36 -04:00
Nadir ChowdhuryandGitHub 829c2d4a1a Add Activity.buttons 2021-04-24 00:27:47 -04:00
StellaandGitHub 91c473db57 [commands] Fix _HelpCommandImpl.clean_params popitem 2021-04-23 02:24:09 -04:00
Rapptz 8e9860077d [commands] Fix flag detection code in get_flags 2021-04-23 02:23:07 -04:00
Alex NørgaardandGitHub e09f64b7c9 Fix typo in FlagConverter docs 2021-04-22 21:12:19 -04:00
JoshandGitHub e5607822d3 Define utils.cached_property in if TYPE_CHECKING guard 2021-04-22 21:11:56 -04:00
Rapptz 275a754abd Add support for editing message attachments 2021-04-21 23:45:06 -04:00
sudosnokandGitHub 67abfea61a Add target_user and target_type to Invite objects 2021-04-21 23:30:35 -04:00
Nadir ChowdhuryandGitHub f4165755a9 Rename lingering _url Asset properties 2021-04-21 23:24:36 -04:00
jack1142andGitHub a55e817ffe Fix documentation for RoleConverter 2021-04-21 23:24:04 -04:00
Nadir ChowdhuryandGitHub 157801bc90 Add Template.is_dirty 2021-04-21 23:22:22 -04:00
JoshandGitHub 8457f70477 [commands] Set constructible FlagConverter flags to not be required 2021-04-21 23:21:02 -04:00
Nadir ChowdhuryandGitHub 1d7f387122 [docs] stage_channels doc typo 2021-04-21 23:18:49 -04:00
JoshandGitHub cfe93f19b1 [commands] Allow FlagCommand subclasses to inherit options 2021-04-21 07:16:23 -04:00
JoshandGitHub 42463bae67 [commands] Add support for aliasing to FlagConverter 2021-04-21 00:31:01 -04:00
KinoandGitHub 0c1c9284f6 Fix typo within HelpCommand.verify_checks documentation 2021-04-21 00:18:32 -04:00
Rapptz 6065329c0e [commands] Avoid creating unnecessary flag mapping copies 2021-04-20 08:02:40 -04:00
Rapptz 15bfdf66b2 [commands] Default construct flags if they're not passed as parameters
This only applies if and only if the flag can be default constructible.
Ergo, all the flags are optional or not required.
2021-04-20 08:00:47 -04:00
Rapptz ac7588f735 Fix some typings in utils 2021-04-20 04:35:53 -04:00
Rapptz 212d308835 [commands] Some minor clean up of the flag converter documentation
Fix #6761
2021-04-19 22:52:29 -04:00
Nadir ChowdhuryandGitHub 7bfb0f8133 [docs] fix docstring of AppInfo 2021-04-19 22:32:07 -04:00
Arnav JindalandGitHub 2e6c28bd60 Bump Python version in Quickstart documentation 2021-04-19 22:26:56 -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
Rapptz 1c64689807 Remove lingering User.avatar documentation 2021-04-19 05:35:33 -04:00
Rapptz c54e43360b [commands] Add run_converters helper to call converters 2021-04-19 04:46:02 -04:00
Rapptz 09f3f2111c [commands] Add Context.current_parameter 2021-04-19 04:41:32 -04:00