async def callback(self, interaction: discord.Interaction):
embed = discord.Embed(title="Modal Results")
embed.add_field(name="test", value=self.children[0].value)
embed.add_field(name="test", value=self.children[1].value)
channel = client.get_channel(1201684034531368994)
await interaction.response.channel.send(embed)
await interaction.response.channel.send(embed)
i dont have any idea to fix this line can help me
Here's a revised version of your code:
Explanation:
You already got the channel object, so now you can just send a message through the channel object.