Skip to content

Commit

Permalink
Merge pull request #3 from he0119/fix/models
Browse files Browse the repository at this point in the history
🐛 guild.name and role.name should be optional
  • Loading branch information
RF-Tar-Railt authored Oct 15, 2023
2 parents 9997ec4 + 97e8bde commit 01b8fd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nonebot/adapters/satori/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class ChannelType(IntEnum):

class Channel(BaseModel, extra=Extra.allow):
id: str
name: Optional[str] = None
type: ChannelType
name: Optional[str] = None
parent_id: Optional[str] = None


class Guild(BaseModel, extra=Extra.allow):
id: str
name: str
name: Optional[str] = None
avatar: Optional[str] = None


Expand Down Expand Up @@ -61,7 +61,7 @@ class OuterMember(InnerMember):

class Role(BaseModel, extra=Extra.allow):
id: str
name: str
name: Optional[str] = None


class LoginStatus(IntEnum):
Expand Down

0 comments on commit 01b8fd7

Please sign in to comment.