MCPcopy Create free account
hub / github.com/RocketGod-git/shodanbot / on_submit

Method on_submit

main.py:299–304  ·  view source on GitHub ↗
(self, interaction: discord.Interaction)

Source from the content-addressed store, hash-verified

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)
301 query = self.children[0].value # Extract the query from the modal
302 view = MaxResultsView(query)
303 message = await interaction.followup.send(content="Choose the maximum number of results:", view=view, ephemeral=False)
304 view.query_message_id = message.id
305
306class MaxResultsView(discord.ui.View):
307 def __init__(self, query):

Callers

nothing calls this directly

Calls 1

MaxResultsViewClass · 0.85

Tested by

no test coverage detected