From 4641ce40486a5d4c993f86ab55c16da73e6147b7 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Tue, 2 Aug 2022 21:40:27 -0400 Subject: [PATCH] Update register command to use data class. --- cogs/register/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/register/__init__.py b/cogs/register/__init__.py index 9cd6c7f..669dc07 100644 --- a/cogs/register/__init__.py +++ b/cogs/register/__init__.py @@ -31,13 +31,13 @@ class RegisterVerificationChannel(commands.Cog, name="Register"): if registration_type == "verify": await ctx.send(f"Registered <#{channel_id}> as channel to post verifications in.") - highscores_data.set_guild_verification_channel(ctx.guild.id, channel_id) + highscores_data.get_guild(ctx.guild.id).verification_channel = channel_id elif registration_type == "highscore": await ctx.send(f"Registered <#{channel_id}> as channel to post highscores in.") - highscores_data.set_guild_highscore_channel(ctx.guild.id, channel_id) + highscores_data.get_guild(ctx.guild.id).highscore_channel = channel_id elif registration_type == "submission": await ctx.send(f"Registered <#{channel_id}> as channel to post submissions in.") - highscores_data.set_guild_submission_channel(ctx.guild.id, channel_id) + highscores_data.get_guild(ctx.guild.id).submission_channel = channel_id else: embed = Embed( title="Register command help", description="How to use the register command."