parent
c30a366106
commit
6f3e32cfbb
@ -766,8 +766,7 @@ class Messageable(metaclass=abc.ABCMeta):
|
|||||||
raise InvalidArgument('files parameter must be a list of up to 10 elements')
|
raise InvalidArgument('files parameter must be a list of up to 10 elements')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
param = [(f.open_file(), f.filename) for f in files]
|
data = await state.http.send_files(channel.id, files=files, content=content, tts=tts,
|
||||||
data = await state.http.send_files(channel.id, files=param, content=content, tts=tts,
|
|
||||||
embed=embed, nonce=nonce)
|
embed=embed, nonce=nonce)
|
||||||
finally:
|
finally:
|
||||||
for f in files:
|
for f in files:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user