Когда первый раз нажимаешь на кнопку, в консоли выдает вот это:
Ignoring exception in view <Market timeout=180 children=4> for item <Button style=<ButtonStyle.primary: 1> url=None disabled=False label='Nitro Full' emoji=None row=None>:
Traceback (most recent call last):
File "C:\python\lib\site-packages\disnake\interactions\base.py", line 827, in send_message
await adapter.create_interaction_response(
File "C:\python\lib\site-packages\disnake\webhook\async_.py", line 214, in request
raise NotFound(response, data)
disnake.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\python\lib\site-packages\disnake\ui\view.py", line 370, in _scheduled_task
await item.callback(interaction)
File "C:\Users\Creativchak\Desktop\discord-bots\MikoBot\cogs\users.py", line 40, in nitrofull
await interaction.response.send_message(f"Ваша заявка на нитро создана. Канал с администрацией: <#{channel.id}>", ephemeral=True)
File "C:\python\lib\site-packages\disnake\interactions\base.py", line 837, in send_message
raise InteractionTimedOut(self._parent) from e
disnake.errors.InteractionTimedOut: Interaction took more than 3 seconds to be responded to. Please defer it using "interaction.response.defer" on the start of your command. Later you may send a response by editing the deferred message using "interaction.edit_original_message"
Note: This might also be caused by a misconfiguration in the components make sure you do not respond twice in case this is a component.