From d8997453f97da20235a1d639709d77fee78b6f1e Mon Sep 17 00:00:00 2001 From: insert Date: Mon, 12 Aug 2024 07:27:27 -0400 Subject: [PATCH] Update --- gameutils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gameutils.py b/gameutils.py index d366903..0b5c4ea 100644 --- a/gameutils.py +++ b/gameutils.py @@ -23,10 +23,13 @@ class TurnModal(nextcord.ui.Modal): placeholder="text", style=TextInputStyle.paragraph, max_length=1700, + required=False, ) self.add_item(self.text) async def callback(self, interaction: nextcord.Interaction) -> None: + if not self.text.value: + self.text.value = "" if not self.fristrun: await interaction.response.edit_message(content=self.message) await interaction.followup.send(f"<{self.turnping}> it is now your turn!\n{self.text.value}")