From 7caf1a062ca34428508cc337ce0432d9c8b3fd71 Mon Sep 17 00:00:00 2001 From: Lilac-Rose Date: Mon, 20 Oct 2025 14:49:44 +0200 Subject: [PATCH] Added export and import xp commands --- xp/export.py | 2 +- xp/import.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xp/export.py b/xp/export.py index fe54252..c4fbc94 100644 --- a/xp/export.py +++ b/xp/export.py @@ -47,7 +47,7 @@ class ExportXP(commands.Cog): ) async def export_xp(self, interaction: discord.Interaction, xp_type: app_commands.Choice[str]): try: - # Defer immediately (not ephemeral so everyone can see) + # Defer immediately await interaction.response.defer() print(f"Export started for {xp_type.value}") diff --git a/xp/import.py b/xp/import.py index 0c2bf8f..5249bdb 100644 --- a/xp/import.py +++ b/xp/import.py @@ -71,7 +71,7 @@ class ImportXP(commands.Cog): attachment: discord.Attachment ): try: - # Defer immediately (not ephemeral so everyone can see) + # Defer immediately await interaction.response.defer() print(f"Import started for {xp_type.value}")