Add get_table function.
This commit is contained in:
@@ -94,6 +94,10 @@ class Guild:
|
||||
if table.name not in self._table_map:
|
||||
self._table_map[table.name] = table
|
||||
|
||||
def get_table(self, table_name: str) -> Table:
|
||||
"""Getter for specific table."""
|
||||
return self._table_map[table_name]
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
"""
|
||||
Creates python dictionary object from class data.
|
||||
|
||||
Reference in New Issue
Block a user