fix: id check thing

This commit is contained in:
rainy 2024-08-11 12:58:25 -07:00
parent b7a5ce5f5f
commit 8e86738a89
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ async def get_posts(inter: disnake.CommandInteraction):
await sot.close()
@plugin.slash_command(description="fetches info on a Soteria user")
async def get_user(inter: disnake.CommandInteraction, id: int):
user = await soteria.User.fetch(sot, id)
async def get_user(inter: disnake.CommandInteraction, id: str):
user = await soteria.User.fetch(sot, int(id))
em = disnake.Embed(title=f"Info For {user.username}", color=disnake.Color.blue())
em.add_field(name="Username", value=user.username)
em.add_field(name="Display Name", value=user.display_name)