From 57d832f529501cae4c60d4ae7575665e720e56b6 Mon Sep 17 00:00:00 2001
From: dnns01 <github@dnns01.de>
Date: Tue, 10 Sep 2024 20:32:32 +0200
Subject: [PATCH] Update text_command_modal.py

---
 modals/text_command_modal.py | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/modals/text_command_modal.py b/modals/text_command_modal.py
index e667bf3..0bdebbf 100644
--- a/modals/text_command_modal.py
+++ b/modals/text_command_modal.py
@@ -33,15 +33,11 @@ class TextCommandModal(ui.Modal, title='Neues Text Command hinzufügen'):
     async def on_submit(self, interaction: discord.Interaction):
         await interaction.response.send_message("Verarbeite Command...", ephemeral=True)
 
-        if utils.is_mod(interaction.user, self.text_commands.bot):
-            if await self.text_commands.add_command(self.cmd, self.text.value, self.description.value, interaction.guild_id):
-                await interaction.edit_original_response(content="Dein Command wurde erfolgreich hinzugefügt!")
-            else:
-                await interaction.edit_original_response(
-                    content="Das Command, dass du hinzufügen möchtest existiert bereits.")
+        if await self.text_commands.add_command(self.cmd, self.text.value, self.description.value, interaction.guild_id):
+            await interaction.edit_original_response(content="Dein Command wurde erfolgreich hinzugefügt!")
         else:
-            await self.text_commands.suggest_command(self.cmd, self.text.value, self.description.value, interaction.guild_id)
-            await interaction.edit_original_response(content="Dein Vorschlag wurde den Mods zur Genehmigung vorgelegt.")
+            await interaction.edit_original_response(
+                content="Das Command, dass du hinzufügen möchtest existiert bereits.")
 
     async def on_error(self, interaction: discord.Interaction, error: Exception) -> None:
         if type(error) in [InvalidLinkError, LinkDoesNotExistError]:
-- 
GitLab