Hey, i have a problem. my modal wasn't sent.
Error: ```py
await interaction.response.send_modal(modal)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In type: Value must be one of {4, 5, 6, 7, 10}.and the code:py
class EditModal(Modal):
def init(self, bot: discord.Bot, type: str, *args, **kwargs) -> None:
self.bot = bot
self.type = type
super().__init__(*args, **kwargs)
if type == "search":
self.add_item(
InputText(
label = "1",
placeholder = "2"
)
)
else:
self.add_item(
InputText(
label = "3",
placeholder = "4"
)
)
async def callback(self, interaction: discord.Interaction):
if self.type == "search":
modal = EditModal(
self.bot,
"edit",
title = "Edit 2"
)
# In type: Value must be one of {4, 5, 6, 7, 10}.
await interaction.response.send_modal(modal)```