diff --git a/changelog.md b/changelog.md index 32d17372..63070e44 100644 --- a/changelog.md +++ b/changelog.md @@ -45,6 +45,11 @@ Changes since 2026.06.04 ### XKCD - Migrates to application commands +## Internal + +### Data delete +- New module that has a command that allows users to delete some of their own data from the bot + ## Moderation ### Events @@ -78,9 +83,6 @@ Changes since 2026.06.04 ### Application - Application will now display discord timestamps instead of plain text for pending application reminder loops -### Data delete -- New module that has a command that allows users to delete some of their own data from the bot - ### Factoid - The /factoid call command now has an optional parameter to ping a member in the factoid display - Factoids called using /factoid call will now have a button to allow the invoker to delete the factoid diff --git a/modules/__init__.py b/modules/__init__.py index 9797f2c6..a3668e58 100644 --- a/modules/__init__.py +++ b/modules/__init__.py @@ -2,6 +2,7 @@ from .administration import * from .fun import * +from .internal import * from .moderation import * from .operation import * from .utility import * diff --git a/modules/operation/datadelete.py b/modules/internal/datadelete.py similarity index 92% rename from modules/operation/datadelete.py rename to modules/internal/datadelete.py index c07bbeaa..4822e521 100644 --- a/modules/operation/datadelete.py +++ b/modules/internal/datadelete.py @@ -25,10 +25,18 @@ async def setup(bot: bot.TechSupportBot) -> None: class DataDeleter(cogs.BaseCog): - """The cog that holds the data delete commands and helper functions""" + """The cog that holds the data delete commands and helper functions - @app_commands.command( - name="data_delete", + Attributes: + data_group (app_commands.Group): The group for the /data commands + """ + + data_group: app_commands.Group = app_commands.Group( + name="data", description="Command Group for individual data management" + ) + + @data_group.command( + name="delete", description="Deletes your data from the databases in the bot", extras={"ephemeral_error": True, "always_enabled": True}, )