(self, *args, **kwargs)
| 293 | |
| 294 | class QueryModal(discord.ui.Modal): |
| 295 | def __init__(self, *args, **kwargs): |
| 296 | super().__init__(*args, **kwargs) |
| 297 | self.add_item(discord.ui.TextInput(label="Enter your search query", style=discord.TextStyle.short, custom_id="query_input")) |
| 298 | |
| 299 | async def on_submit(self, interaction: discord.Interaction): |
| 300 | await interaction.response.defer(ephemeral=True) |