Correct submission listener usage of HighscoresData.

This commit is contained in:
alwayscompiling
2022-07-28 11:14:38 -04:00
parent 455b51a998
commit 565babd1d3
3 changed files with 16 additions and 7 deletions
+9
View File
@@ -122,6 +122,15 @@ class HighscoresData:
"""
return self._config["highscore_size"]
def get_config_time_record(self, category: str) -> bool:
"""
Tells if the category is a time record
@param category: category name to retrieve from.
@returns: bool indicating time record or not.
"""
return self._config["categories"][category]["is_time_record"]
def get_guilds(self) -> "list[int]":
"""
Gets a list of guilds tracked by data