Have to pass guild object to save function.

This commit is contained in:
alwayscompiling
2022-08-04 11:34:51 -04:00
parent b4d0f8a15e
commit 448bed17ec
+2 -2
View File
@@ -46,8 +46,8 @@ class PostHighscores(commands.Cog, name="Post Highscores"):
await message.edit(view=SubmissionCreateButton(self.bot))
# have to save data here in case message id was changed. rather save here after all
# all messages have been sent.
highscores_data.save_guild_data(ctx.guild.id)
# messages have been sent.
highscores_data.save_guild_data(guild)
# This function will be called when this extension is loaded.