Update delete scores command.
This commit is contained in:
@@ -57,6 +57,18 @@ class HighscoresData:
|
||||
guild: Guild = Guild(guild_id)
|
||||
self._guild_map[guild_id] = guild
|
||||
|
||||
def get_guild(self, guild_id: int) -> Guild:
|
||||
"""
|
||||
Getter for Guild object that corresponds with the guild_id.
|
||||
|
||||
Args:
|
||||
guild_id (int): id of Guild to retrieve.
|
||||
|
||||
Returns:
|
||||
Guild: Guild object for guild_id
|
||||
"""
|
||||
return self._guild_map[guild_id]
|
||||
|
||||
def remove_guild(self, guild_id: int) -> None:
|
||||
"""
|
||||
Removes a guild's data from object. Saves backup.
|
||||
|
||||
Reference in New Issue
Block a user