Skip to content

Commit

Permalink
πŸš€ πŸ’„ Update book cover size
Browse files Browse the repository at this point in the history
  • Loading branch information
dodok8 committed Mar 3, 2024
1 parent a74e4d9 commit 4f778c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const show: SlashCommand = {
})
if (confirmation.customId == 'items') {
const itemId = extractItemId((confirmation as any).values[0])
const URL = `http://www.aladin.co.kr/ttb/api/ItemLookUp.aspx?ttbkey=${process.env.ALADIN_TOKEN}&itemId=${itemId}&itemIdtype=ItemId&output=js&Version=20131101`
const URL = `http://www.aladin.co.kr/ttb/api/ItemLookUp.aspx?ttbkey=${process.env.ALADIN_TOKEN}&itemId=${itemId}&itemIdtype=ItemId&Cover=MidBig&output=js&Version=20131101`

const { data } = await axios.get<ItemLookUpResponse>(URL)
const { title, link, description, author, publisher, pubDate, cover } =
Expand Down Expand Up @@ -176,7 +176,7 @@ export const show: SlashCommand = {
inline: true,
}
)
.setThumbnail(cover)
.setImage(cover)
.setColor('#eb3b94')
.setTimestamp()

Expand Down

0 comments on commit 4f778c3

Please sign in to comment.