File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
interactions/client/models Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ class Command(DictSerializerMixin):
396396 name : Optional [str ] = field (default = MISSING , repr = True )
397397 description : Optional [str ] = field (default = MISSING )
398398 options : Optional [List [Option ]] = field (converter = convert_list (Option ), factory = list )
399- scope : Optional [Union [int , Guild , List [int ], List [Guild ]]] = field (default = None )
399+ scope : Optional [Union [int , Guild , List [int ], List [Guild ]]] = field (default = MISSING )
400400 default_member_permissions : Optional [str ] = field (default = MISSING )
401401 dm_permission : Optional [bool ] = field (default = MISSING )
402402 name_localizations : Optional [Dict [Union [str , Locale ], str ]] = field (default = MISSING )
@@ -422,7 +422,7 @@ def __attrs_post_init__(self) -> None:
422422 if hasattr (self .coro , "_options" ):
423423 self .options .extend (self .coro ._options )
424424 self .coro ._options = self .options
425- if self .scope :
425+ if self .scope and self . scope is not MISSING :
426426 if not isinstance (self .scope , list ):
427427 self .scope = [self .scope ]
428428 if any (isinstance (scope , Guild ) for scope in self .scope ):
You can’t perform that action at this time.
0 commit comments