Ошибка взаимодействия кнопки discord.py
@bot.command()
async def test(ctx):
await ctx.send(
embed=discord.Embed(title="Invite to party"),
components=[
Button(style=ButtonStyle.green, label="Accept", emoji="?"),
Button(style=ButtonStyle.red, label="Decline", emoji="?"),
Button(style=ButtonStyle.URL, label="test", url="https://www.google.com")
]
)
response = await bot.wait_for("button_click")
if response.channel == ctx.channel:
if response.component.label == "Accept":
await response.respond(content="Great!")
else:
await response.respond(
embed=discord.Embed(title="Are you sure?"),
components=[
Button(style=ButtonStyle.green, label="Yes"),
Button(style=ButtonStyle.red, label="No"),
Button(style=ButtonStyle.blue, label="I'll think...", emoji="?"),
]
)
Нажимаю на кнопку, а бот пишет "Ошибка взаимодействия"
Надеюсь на вашу помощь ?
