mirror of https://codeberg.org/soteria/sox.git
fix: id check thing
This commit is contained in:
parent
b7a5ce5f5f
commit
8e86738a89
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue