Skip to content

Commit

Permalink
✨ 为 User 添加 global_name, avatar_decoration (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Autuamn authored Apr 14, 2024
1 parent bf27ff2 commit 19b336f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nonebot/adapters/discord/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2218,6 +2218,7 @@ class User(BaseModel):
id: Snowflake
username: str
discriminator: str
global_name: Optional[str]
avatar: Optional[str] = Field(...)
bot: Missing[bool] = UNSET
system: Missing[bool] = UNSET
Expand All @@ -2230,6 +2231,7 @@ class User(BaseModel):
flags: Missing[int] = UNSET
premium_type: Missing[PremiumType] = UNSET
public_flags: Missing[UserFlags] = UNSET
avatar_decoration: MissingOrNullable[str] = UNSET


class Connection(BaseModel):
Expand Down

0 comments on commit 19b336f

Please sign in to comment.