Merge pull request '改为使用 proxy url' (#37) from bugfix/discord-image-download into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #37
This commit is contained in:
@ -127,7 +127,7 @@ async def extract_image_from_message(
|
||||
for a in evt.attachments:
|
||||
if "image/" not in a.content_type:
|
||||
continue
|
||||
url = a.url
|
||||
url = a.proxy_url
|
||||
return (await download_image_bytes(url)).bind(bytes_to_pil)
|
||||
|
||||
for seg in UniMessage.of(msg, bot):
|
||||
|
||||
Reference in New Issue
Block a user