Skip to content

Commit

Permalink
fix: allow for non-member users in image commands, bump aiosu
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceAesth committed Jan 30, 2024
1 parent cdb02c4 commit 3aab698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/cogs/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, bot: Sunny) -> None:
async def avatar_command(
self,
interaction: discord.Interaction,
user: discord.Member | None,
user: discord.User | None,
avatar_type: Literal["guild", "profile"] = "profile",
) -> None:
if user is None:
Expand Down Expand Up @@ -89,7 +89,7 @@ async def wink_command(self, interaction: discord.Interaction) -> None:
async def pat_command(
self,
interaction: discord.Interaction,
user: discord.Member | None,
user: discord.User | None,
) -> None:
async with aiohttp.ClientSession() as cs:
async with cs.get("https://some-random-api.com/animu/pat") as r:
Expand All @@ -107,7 +107,7 @@ async def pat_command(
async def hug_command(
self,
interaction: discord.Interaction,
user: discord.Member | None,
user: discord.User | None,
) -> None:
async with aiohttp.ClientSession() as cs:
async with cs.get("https://some-random-api.com/animu/hug") as r:
Expand Down

0 comments on commit 3aab698

Please sign in to comment.