From b29a9e6419b426db6a7652ee536518d2b3f159fb Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:40:40 -0700 Subject: [PATCH 1/2] Move data delete command to new internal category. Makes the command /data delete instead of /data_delete --- modules/__init__.py | 1 + modules/{operation => internal}/datadelete.py | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) rename modules/{operation => internal}/datadelete.py (92%) 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}, ) From b84d7cefe54311af20c1e1b71f6d7665b8473bb7 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:41:12 -0700 Subject: [PATCH 2/2] Update changelog: --- changelog.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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