Saving guild after modification.
This commit is contained in:
+2
-1
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user