Added getter

This commit is contained in:
Sven Heidemann 2021-12-01 20:30:27 +01:00
parent e15ae555be
commit d27964372d

View File

@ -31,6 +31,38 @@ class Client(TableABC):
self._created_at = created_at if created_at is not None else self._created_at
self._modified_at = modified_at if modified_at is not None else self._modified_at
@property
def client_id(self) -> int:
return self._client_id
@property
def discord_id(self) -> int:
return self._discord_id
@property
def sent_message_count(self) -> int:
return self._sent_message_count
@property
def received_message_count(self) -> int:
return self._received_message_count
@property
def deleted_message_count(self) -> int:
return self._deleted_message_count
@property
def received_command_count(self) -> int:
return self._received_command_count
@property
def moved_users_count(self) -> int:
return self._moved_users_count
@property
def server(self) -> Server:
return self._server
@staticmethod
def get_create_string() -> str:
return str(f"""