Skip to content

Commit 729383f

Browse files
author
Kile
committed
🐛 Several bug fixes
1 parent 2474eeb commit 729383f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

killua/cogs/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ async def _get_image_url(
168168
) # This might eventually be deprecated for copyright reasons
169169
else:
170170
image = await self.request_action(endpoint)
171-
return image, None
171+
return image["link"], None
172172

173173
async def action_embed(
174174
self,

killua/cogs/cards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ async def sell(
391391
"""Sell any amount of cards you own"""
392392
if sell_opt:
393393
sell_opt: SellOptions = getattr(
394-
SellOptions, type
394+
SellOptions, sell_opt
395395
) # I cannot use the enum directly due to a library limitation with enums as annotations in message commands
396396

397397
user = await User.new(ctx.author.id)

killua/utils/classes/book.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ async def _numbers(self, image: Image.Image, data: list, page: int) -> Image.Ima
261261
],
262262
]
263263

264-
font = self._getfont(35)
264+
font = self._get_font(35)
265265
draw = ImageDraw.Draw(image)
266266
for n, i in enumerate(data):
267267
if i[1] is None:

0 commit comments

Comments
 (0)