Update register command to use data class.

This commit is contained in:
alwayscompiling
2022-08-02 21:40:27 -04:00
parent 142842a36b
commit 4641ce4048
+3 -3
View File
@@ -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."