From 8457f70477386091ee04dbc0e47ec6575a13641a Mon Sep 17 00:00:00 2001
From: Josh <josh.ja.butt@gmail.com>
Date: Thu, 22 Apr 2021 13:21:02 +1000
Subject: [PATCH] [commands] Set constructible FlagConverter flags to not be
 required

---
 discord/ext/commands/flags.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/discord/ext/commands/flags.py b/discord/ext/commands/flags.py
index b84e9a183..abffbbcdc 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 = []