#Modal error in discord

1 messages · Page 1 of 1 (latest)

vernal bobcat
#

Despite showing an error in Discord I am receiving the user input just fine on my end. Am I meant to respond somehow?

narrow schooner
#

are you doing a interaction.response.send_message in the modal callback?

#

bc yeah, the modal needs to respond in some way

vernal bobcat
#

No, the callback is just

async def callback(self, interaction: discord.Interaction):
        input = self.children[0].value
        distance = fuzz.ratio(prompt,input)
        print(f"User replied with \"{input}\" for \"{prompt}\" with distance of {distance}.")```
I do plan to have it edit the original response message though. I assume that'll fix it then?
narrow schooner
#

ye, it just needs some sort of response