This commit is contained in:
insert 2024-08-12 07:27:27 -04:00
parent 3c853f74ac
commit d8997453f9
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -23,10 +23,13 @@ class TurnModal(nextcord.ui.Modal):
placeholder="text", placeholder="text",
style=TextInputStyle.paragraph, style=TextInputStyle.paragraph,
max_length=1700, max_length=1700,
required=False,
) )
self.add_item(self.text) self.add_item(self.text)
async def callback(self, interaction: nextcord.Interaction) -> None: async def callback(self, interaction: nextcord.Interaction) -> None:
if not self.text.value:
self.text.value = ""
if not self.fristrun: if not self.fristrun:
await interaction.response.edit_message(content=self.message) await interaction.response.edit_message(content=self.message)
await interaction.followup.send(f"<{self.turnping}> it is now your turn!\n{self.text.value}") await interaction.followup.send(f"<{self.turnping}> it is now your turn!\n{self.text.value}")