13 Commits

Author SHA1 Message Date
Rapptz
1a8d63d54f [commands] Remove Flag related delimiter and prefix error 2021-04-30 03:29:44 -04:00
Nadir Chowdhury
c786a85a9b
Add utils.MISSING 2021-04-29 01:58:36 -04:00
Rapptz
9f3551926a Split annotation resolution to discord.utils 2021-04-27 05:48:27 -04:00
Josh
4fbc78ba81
[commands] Add support for typing.Union to Flags 2021-04-25 04:35:19 -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
Rapptz
8e9860077d [commands] Fix flag detection code in get_flags 2021-04-23 02:23:07 -04:00
Josh
8457f70477
[commands] Set constructible FlagConverter flags to not be required 2021-04-21 23:21:02 -04:00
Josh
cfe93f19b1
[commands] Allow FlagCommand subclasses to inherit options 2021-04-21 07:16:23 -04:00
Josh
42463bae67
[commands] Add support for aliasing to FlagConverter 2021-04-21 00:31:01 -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
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