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."