Move message map creation to highscores.py. Was a circular import.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user