diff --git a/nonebot_plugin_tetris_stats/games/tetrio/unbind.py b/nonebot_plugin_tetris_stats/games/tetrio/unbind.py index f84424b..e5ba757 100644 --- a/nonebot_plugin_tetris_stats/games/tetrio/unbind.py +++ b/nonebot_plugin_tetris_stats/games/tetrio/unbind.py @@ -56,7 +56,7 @@ async def _(nb_user: User, event_session: Uninfo, interface: QryItrface): raw=await render_image( Bind( platform='TETR.IO', - type='unlink', + type='unbind', user=People( avatar=str( URL(f'http://{netloc}/host/resource/tetrio/avatars/{user.ID}') diff --git a/nonebot_plugin_tetris_stats/games/top/unbind.py b/nonebot_plugin_tetris_stats/games/top/unbind.py index eeb10d0..e848952 100644 --- a/nonebot_plugin_tetris_stats/games/top/unbind.py +++ b/nonebot_plugin_tetris_stats/games/top/unbind.py @@ -47,7 +47,7 @@ async def _( raw=await render_image( Bind( platform='TOP', - type='unlink', + type='unbind', user=People( avatar=await get_avatar( event_session.user, diff --git a/nonebot_plugin_tetris_stats/games/tos/unbind.py b/nonebot_plugin_tetris_stats/games/tos/unbind.py index f50350e..3a7c8af 100644 --- a/nonebot_plugin_tetris_stats/games/tos/unbind.py +++ b/nonebot_plugin_tetris_stats/games/tos/unbind.py @@ -46,7 +46,7 @@ async def _( raw=await render_image( Bind( platform='TOS', - type='unlink', + type='unbind', user=People( avatar=await get_avatar(event_session.user, 'Data URI', None), name=user.name, diff --git a/nonebot_plugin_tetris_stats/utils/render/schemas/bind.py b/nonebot_plugin_tetris_stats/utils/render/schemas/bind.py index cc3595f..6052cb1 100644 --- a/nonebot_plugin_tetris_stats/utils/render/schemas/bind.py +++ b/nonebot_plugin_tetris_stats/utils/render/schemas/bind.py @@ -12,7 +12,7 @@ class Bind(Base): return 'v1/binding' platform: Literal['TETR.IO', 'TOP', 'TOS'] - type: Literal['success', 'unknown', 'unlink', 'unverified', 'error'] + type: Literal['success', 'unknown', 'unbind', 'unverified', 'error'] user: People bot: People prompt: str