Added mutations #162

This commit is contained in:
2023-02-08 17:48:54 +01:00
parent 23e238b7d5
commit af8c2dea60
11 changed files with 209 additions and 7 deletions

View File

@@ -37,10 +37,18 @@ class AutoRole(TableABC):
def discord_channel_id(self) -> int:
return self._discord_channel_id
@discord_channel_id.setter
def discord_channel_id(self, value: int):
self._discord_channel_id = value
@property
def discord_message_id(self) -> int:
return self._discord_message_id
@discord_message_id.setter
def discord_message_id(self, value: int):
self._discord_message_id = value
@staticmethod
def get_select_all_string() -> str:
return str(

View File

@@ -36,10 +36,18 @@ class AutoRoleRule(TableABC):
def emoji_name(self) -> str:
return self._discord_emoji_name
@emoji_name.setter
def emoji_name(self, value: str):
self._discord_emoji_name = value
@property
def role_id(self) -> int:
return self._discord_role_id
@role_id.setter
def role_id(self, value: int):
self._discord_role_id = value
@staticmethod
def get_select_all_string() -> str:
return str(