Add refresh table command.

This commit is contained in:
alwayscompiling
2022-11-16 16:30:34 -05:00
parent 792a225987
commit 1858f0c37d
2 changed files with 63 additions and 1 deletions
+11
View File
@@ -202,6 +202,17 @@ class Guild:
return self._table_map[table_name]
return None
def get_tables(self) -> dict:
"""
Getter for dict of table names and tables.
Returns:
dict: Dictionary consisting of the Table Names and the Table object itself.
"""
# I don't know if this is const data. Don't want to allow data to be written as a result of this function.
return self._table_map
def to_dict(self) -> dict:
"""
Creates python dictionary object from class data.