Skip to content

Commit e0b8095

Browse files
committed
🐛 Minor fixes
1 parent 18b5ce9 commit e0b8095

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

killua/bot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
def _cached(func, cache):
2626
"""Cache specifically designed for the find_dominant_color function"""
2727
async def inner(self, args):
28-
print(cache)
2928
if args in cache:
3029
return cache[args]
3130
res = await func(self, args)

killua/cogs/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ async def on_command_error(self, ctx: commands.Context, error):
882882
":x: an unexpected error occured. If this should keep happening, please report it by clicking on the button and using `/report` in the support server.",
883883
view=view,
884884
)
885-
except discord.Forbidden:
885+
except (discord.Forbidden, discord.NotFound):
886886
pass # This theoretically should be covered by all the cases above,
887887
# but handling it again here can't hurt
888888

killua/cogs/image_manipulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ async def lego(self, ctx: commands.Context, target: str = None):
293293
async def func(data, *_):
294294
return await self.pxl.lego(images=[data], scale=True, groupSize=10)
295295

296-
await self.handle_command(ctx, target, func)
296+
await self.handle_command(ctx, target, func, extra_time=3)
297297

298298
@check(3)
299299
@commands.hybrid_command(

killua/cogs/small_commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ async def avatar(
257257
guild_avatar: Literal["yes", "no"] = "no",
258258
):
259259
"""Shows the avatar of a user"""
260+
await ctx.defer()
261+
# Yeah... idk I get some log errors from this taking a while so
260262
user = user or ctx.author
261263
avatar = user.avatar if guild_avatar == "no" else user.display_avatar
262264

0 commit comments

Comments
 (0)