Changed design to be one class per file.
This commit is contained in:
@@ -8,15 +8,14 @@ import nextcord
|
||||
from highscores import highscores_data # pylint: disable=import-error
|
||||
|
||||
|
||||
class DeleteScores(commands.Cog, name="Delete Scores"):
|
||||
class TableManagement(commands.Cog, name="Table Management"):
|
||||
"""
|
||||
Warning: This command only works for developers.
|
||||
Deletes this guild's scores.
|
||||
Class holds commands for managing the data storage of the highscores.
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
"""
|
||||
Default constructor for DeleteScores class. Does nothing.
|
||||
Default constructor for TableManagement class. Does nothing.
|
||||
"""
|
||||
|
||||
@nextcord.slash_command(
|
||||
@@ -25,6 +24,8 @@ class DeleteScores(commands.Cog, name="Delete Scores"):
|
||||
)
|
||||
async def delete_scores(self, interaction: nextcord.Interaction):
|
||||
"""
|
||||
Warning: This command only works for developers.
|
||||
|
||||
A command which deletes all scores in all tables for this guild.
|
||||
Command limits to admins to prevent devs from usings on non-test servers.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user