class TicketingModal(discord.ui.Modal):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
self.add_item(discord.ui.InputText(label="Reason", style=discord.InputTextStyle.long))
async def callback(self, interaction: discord.Interaction):
await self.wait()
embed = await funcs.custom_embed("Ticket", "A ticket has been opened")
embed.add_field(name="Reason", value=self.children[0].value)
return embed```
why won't the code wait for the modal to be completed by the user and why is embed of type interaction?
#Major issue
1 messages · Page 1 of 1 (latest)