Update register command to use data class.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user