aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/flags.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/ext/commands/flags.py b/discord/ext/commands/flags.py
index b84e9a18..abffbbcd 100644
--- a/discord/ext/commands/flags.py
+++ b/discord/ext/commands/flags.py
@@ -184,6 +184,9 @@ def get_flags(namespace: Dict[str, Any], globals: Dict[str, Any], locals: Dict[s
annotation = flag.annotation = resolve_annotation(flag.annotation, globals, locals, cache)
+ if flag.default is MISSING and issubclass(annotation, FlagConverter) and annotation._can_be_constructible():
+ flag.default = annotation._construct_default
+
if flag.aliases is MISSING:
flag.aliases = []