Have to pass guild object to save function.
This commit is contained in:
@@ -46,8 +46,8 @@ class PostHighscores(commands.Cog, name="Post Highscores"):
|
|||||||
await message.edit(view=SubmissionCreateButton(self.bot))
|
await message.edit(view=SubmissionCreateButton(self.bot))
|
||||||
|
|
||||||
# have to save data here in case message id was changed. rather save here after all
|
# have to save data here in case message id was changed. rather save here after all
|
||||||
# all messages have been sent.
|
# messages have been sent.
|
||||||
highscores_data.save_guild_data(ctx.guild.id)
|
highscores_data.save_guild_data(guild)
|
||||||
|
|
||||||
|
|
||||||
# This function will be called when this extension is loaded.
|
# This function will be called when this extension is loaded.
|
||||||
|
|||||||
Reference in New Issue
Block a user