mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
✨ 更新模板
This commit is contained in:
@@ -368,8 +368,9 @@ async def make_query_image_v2(player: Player) -> bytes:
|
|||||||
for i in user_info.data.user.badges
|
for i in user_info.data.user.badges
|
||||||
],
|
],
|
||||||
country=user_info.data.user.country,
|
country=user_info.data.user.country,
|
||||||
|
role=user_info.data.user.role,
|
||||||
xp=user_info.data.user.xp,
|
xp=user_info.data.user.xp,
|
||||||
friend_count=user_info.data.user.friend_count or 0,
|
friend_count=user_info.data.user.friend_count,
|
||||||
supporter_tier=user_info.data.user.supporter_tier,
|
supporter_tier=user_info.data.user.supporter_tier,
|
||||||
bad_standing=user_info.data.user.badstanding or False,
|
bad_standing=user_info.data.user.badstanding or False,
|
||||||
verified=user_info.data.user.verified,
|
verified=user_info.data.user.verified,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
from typing import Literal
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
@@ -21,12 +22,14 @@ class User(BaseModel):
|
|||||||
name: str
|
name: str
|
||||||
country: str | None
|
country: str | None
|
||||||
|
|
||||||
|
role: Literal['anon', 'user', 'bot', 'halfmod', 'mod', 'admin', 'sysop', 'banned']
|
||||||
|
|
||||||
avatar: str | Avatar
|
avatar: str | Avatar
|
||||||
banner: str | None
|
banner: str | None
|
||||||
|
|
||||||
bio: str | None
|
bio: str | None
|
||||||
|
|
||||||
friend_count: int
|
friend_count: int | None
|
||||||
supporter_tier: int
|
supporter_tier: int
|
||||||
|
|
||||||
verified: bool
|
verified: bool
|
||||||
|
|||||||
Reference in New Issue
Block a user