File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -570,21 +570,6 @@ async def send_message(
570
570
elif not all (isinstance (file , File ) for file in files ):
571
571
raise InvalidArgument ('files parameter must be a list of File' )
572
572
573
- if file is not None and files is not None :
574
- raise InvalidArgument ('cannot pass both file and files parameter to send()' )
575
-
576
- if file is not None :
577
- if not isinstance (file , File ):
578
- raise InvalidArgument ('file parameter must be File' )
579
- else :
580
- files = [file ]
581
-
582
- if files is not None :
583
- if len (files ) > 10 :
584
- raise InvalidArgument ('files parameter must be a list of up to 10 elements' )
585
- elif not all (isinstance (file , File ) for file in files ):
586
- raise InvalidArgument ('files parameter must be a list of File' )
587
-
588
573
parent = self ._parent
589
574
adapter = async_context .get ()
590
575
try :
@@ -840,4 +825,4 @@ async def inner_call(delay: float = delay):
840
825
841
826
asyncio .create_task (inner_call ())
842
827
else :
843
- await self ._state ._interaction .delete_original_message ()
828
+ await self ._state ._interaction .delete_original_message ()
You can’t perform that action at this time.
0 commit comments