Saving guild after modification.

This commit is contained in:
alwayscompiling
2022-08-03 22:21:49 -04:00
parent 4d9c70bf09
commit 66ace947c6
4 changed files with 15 additions and 7 deletions
+2 -1
View File
@@ -3,7 +3,7 @@ Contains various utlity functions for highscores bot
"""
import nextcord
from highscores import highscores_message_map # pylint: disable=import-error
from highscores import highscores_data, highscores_message_map # pylint: disable=import-error
from data.score import Score # pylint: disable=import-error
from data.guild import Guild # pylint: disable=import-error
from data.category import Category # pylint: disable=import-error
@@ -112,6 +112,7 @@ async def submit_score(
"""
category.add_score(score)
highscores_data.save_guild_data(guild)
# edit message
print(f"Editting message {guild.highscore_channel}")