Skip to content

Commit

Permalink
tempfix: gets timed out (10s request)
Browse files Browse the repository at this point in the history
  • Loading branch information
adntaha committed Nov 8, 2022
1 parent f31e639 commit 9f79d82
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/capy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ export function capy(): CommandHandler {
return () => <Message ephemeral>Invalid HTTP status code</Message>;

return async () => {
const res = await fetch(image_url).then((res) => res.blob());
const file = new File([res], "image.png");
// const res = await fetch(image_url).then((res) => res.blob());
// const file = new File([res], "image.png");

return <Message ephemeral={show === "me"} attachments={[file]} />;
// return <Message ephemeral={show === "me"} attachments={[file]} />;
return <Message ephemeral={show === "me"}>{image_url}</Message>;
};
}

0 comments on commit 9f79d82

Please sign in to comment.