From e9098c144bdd45edf54cf8b9b98e7c9f69dc0d9a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 25 Sep 2023 00:02:57 -0400 Subject: [PATCH] fix(moderation): fixed broken on_submit --- moderation/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 61a6973..8b0a0c5 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -53,7 +53,7 @@ class Moderation(commands.Cog): address = discord.ui.TextInput( label="Address", placeholder="Input your MySQL address here.", - style=discord.TextStyle.paragraph, + style=discord.TextStyle.short, required=False, max_length=300 ) @@ -96,7 +96,7 @@ class Moderation(commands.Cog): message += f"- Password set to\n - `{trimmed_password}` - Trimmed for security\n" if message == "": trimmed_password = str(await self.config.mysql_password())[:8] - send = f"No changes were made.\nCurrent configuration:\n- Address:\n - `{await self.config.mysql_address()}`\n- Database:\n - `{await self.config.mysql_database}`\n- Username:\n - `{await self.config.mysql_username()}`\n- Password:\n - `{trimmed_password}` - Trimmed for security" + send = f"No changes were made.\nCurrent configuration:\n- Address:\n - `{await self.config.mysql_address()}`\n- Database:\n - `{await self.config.mysql_database()}`\n- Username:\n - `{await self.config.mysql_username()}`\n- Password:\n - `{trimmed_password}` - Trimmed for security" else: send = f"Configuration changed:\n{message}" await interaction.response.send_message(send, ephemeral=True)