Skip to content

Commit

Permalink
fix: make some realm properties optional
Browse files Browse the repository at this point in the history
  • Loading branch information
AstreaTSS committed Oct 2, 2024
1 parent f6fcb2a commit e068f54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elytra/bedrock_realms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ class FullRealm(ParsableCamelModel):
minigame_id: NoneType
minigame_image: NoneType
active_slot: int
member: bool
subscription_refresh_status: NoneType
owner_uuid: str = msgspec.field(name="ownerUUID")
member: bool = False
slots: typing.Optional[typing.Any] = None
players: typing.Optional[list[Player]] = None
club_id: typing.Optional[int] = None
Expand All @@ -120,9 +120,9 @@ class IndividualRealm(ParsableCamelModel):
state: State
max_players: int
active_slot: int
member: bool
is_hardcore: bool
owner_uuid: str = msgspec.field(name="ownerUUID")
member: bool = False
is_hardcore: bool = False
players: typing.Optional[list[Player]] = None
club_id: typing.Optional[int] = None
motd: typing.Optional[str] = None
Expand Down

0 comments on commit e068f54

Please sign in to comment.