Move message map creation to highscores.py. Was a circular import.

This commit is contained in:
alwayscompiling
2022-07-28 10:41:10 -04:00
parent 64004329da
commit 463ef48052
3 changed files with 20 additions and 21 deletions
+13
View File
@@ -122,6 +122,19 @@ class HighscoresData:
"""
return self._config["highscore_size"]
def get_guilds(self) -> "list[int]":
"""
Gets a list of guilds tracked by data
@returns: list of ints representing guild ids
"""
guilds: "list[int]" = []
for guild, data in self._data: # pylint: disable=unused-variable
guilds.append(int(guild))
return guilds
def get_guild_channel_id(self, guild_id: int) -> int:
"""
Returns the channel id to post highscore messages to.