diff --git a/cogs/commands/data_management.py b/cogs/commands/data_management.py index d63222b..e93876f 100644 --- a/cogs/commands/data_management.py +++ b/cogs/commands/data_management.py @@ -29,11 +29,16 @@ class DataManagementCog(commands.Cog, name="Table Management"): """ self._bot.add_view(UpdateUsernameVerifyView()) - @nextcord.slash_command( - description="Deletes all scores for this guild. Used for testing.", - default_member_permissions=nextcord.Permissions(administrator=True), + @nextcord.slash_command(default_member_permissions=nextcord.Permissions(administrator=True)) + async def delete(self, interaction: nextcord.Interaction): + """ + Parent slash command for deleting things. Never called. + """ + + @delete.subcommand( + description="Deletes all scores for this guild. Used for testing. Do Not Use." ) - async def delete_scores(self, interaction: nextcord.Interaction): + async def scores(self, interaction: nextcord.Interaction): """ Warning: This command only works for developers. @@ -52,14 +57,13 @@ class DataManagementCog(commands.Cog, name="Table Management"): ) else: await interaction.response.send_message( - "You shouldn't be using this message.", ephemeral=True + "You shouldn't be using this command. Deletes everything.", ephemeral=True ) - @nextcord.slash_command( + @delete.subcommand( description="Removes all of a user's scores. Warning: data is destroyed, use with case.", - default_member_permissions=nextcord.Permissions(administrator=True), ) - async def remove_user( + async def user( self, interaction: nextcord.Interaction, username: str = nextcord.SlashOption(