File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1314,10 +1314,10 @@ async def edit(
1314
1314
else :
1315
1315
payload ['components' ] = []
1316
1316
1317
- if file is not None and files is not None :
1318
- raise InvalidArgument ('cannot pass both file and files parameter to send ()' )
1317
+ if file is not MISSING and files is not MISSING :
1318
+ raise InvalidArgument ('cannot pass both file and files parameter to edit ()' )
1319
1319
1320
- if file is not None :
1320
+ if file is not MISSING :
1321
1321
if not isinstance (file , File ):
1322
1322
raise InvalidArgument ('file parameter must be File' )
1323
1323
@@ -1337,7 +1337,7 @@ async def edit(
1337
1337
finally :
1338
1338
file .close ()
1339
1339
1340
- elif files is not None :
1340
+ elif files is not MISSING :
1341
1341
if len (files ) > 10 :
1342
1342
raise InvalidArgument ('files parameter must be a list of up to 10 elements' )
1343
1343
elif not all (isinstance (file , File ) for file in files ):
You can’t perform that action at this time.
0 commit comments