From 142842a36bc09be67c7c0a4dcbc15896e5f916a5 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Tue, 2 Aug 2022 21:36:17 -0400 Subject: [PATCH] Update post highscores to new data class. --- cogs/post_highscores/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/post_highscores/__init__.py b/cogs/post_highscores/__init__.py index 83f4870..177bf8e 100644 --- a/cogs/post_highscores/__init__.py +++ b/cogs/post_highscores/__init__.py @@ -27,7 +27,7 @@ class PostHighscores(commands.Cog, name="Post Highscores"): ?post-scores ``` """ - highscore_channel_id = highscores_data.get_guild_highscores_channel(ctx.guild.id) + highscore_channel_id = highscores_data.get_guild(ctx.guild.id).highscore_channel print(f"Printing out highscores information in channel {highscore_channel_id}") channel = ctx.guild.get_channel(highscore_channel_id) @@ -35,7 +35,7 @@ class PostHighscores(commands.Cog, name="Post Highscores"): error_response += 'Register with "?register" command.' assert channel is not None, await ctx.send(error_response) - for table in highscores_data.get_table_names(ctx.guild.id): + for table in highscores_data.get_guild(ctx.guild.id).tables: message: nextcord.Message = await send_highscore_message(channel, table, ctx.guild.id) await message.edit(view=SubmissionCreateButton(self.bot))