Reorganized commands to facilitate new commands.
This commit is contained in:
@@ -29,11 +29,16 @@ class DataManagementCog(commands.Cog, name="Table Management"):
|
|||||||
"""
|
"""
|
||||||
self._bot.add_view(UpdateUsernameVerifyView())
|
self._bot.add_view(UpdateUsernameVerifyView())
|
||||||
|
|
||||||
@nextcord.slash_command(
|
@nextcord.slash_command(default_member_permissions=nextcord.Permissions(administrator=True))
|
||||||
description="Deletes all scores for this guild. Used for testing.",
|
async def delete(self, interaction: nextcord.Interaction):
|
||||||
default_member_permissions=nextcord.Permissions(administrator=True),
|
"""
|
||||||
|
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.
|
Warning: This command only works for developers.
|
||||||
|
|
||||||
@@ -52,14 +57,13 @@ class DataManagementCog(commands.Cog, name="Table Management"):
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
await interaction.response.send_message(
|
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.",
|
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,
|
self,
|
||||||
interaction: nextcord.Interaction,
|
interaction: nextcord.Interaction,
|
||||||
username: str = nextcord.SlashOption(
|
username: str = nextcord.SlashOption(
|
||||||
|
|||||||
Reference in New Issue
Block a user