【问题标题】:How to fix discord buttons "this interaction failed error" in my script (python)如何在我的脚本(python)中修复不和谐按钮“此交互失败错误”
【发布时间】:2021-10-27 08:43:44
【问题描述】:
@bot.command()
async def coin(ctx):
    await ctx.channel.send(
        "This is our **bet** coin : <:coiner:902807543569584158>",
        components = [
            Button(label = "Animated coin")
        ]
    )
    while True:
        interaction = await bot.wait_for("button_click", check = lambda i: i.component.label.startswith("Animated"))
        await interaction.respond(content = "<a:coinanimated:9028075435695848902>")

当我打开discord并尝试按下按钮时,它会写“此交互失败”错误

【问题讨论】:

  • 你使用的是哪个库?
  • 我已经解决了,谢谢重复

标签: python button discord bots


【解决方案1】:

已解决

pip uninstall discord.py

pip install discord.py=1.7.3

然后使用相同的代码

【讨论】:

    猜你喜欢
    • 2018-07-06
    • 1970-01-01
    • 2022-01-19
    • 2021-11-20
    • 2022-01-26
    • 1970-01-01
    • 1970-01-01
    • 2015-10-05
    • 1970-01-01
    相关资源
    最近更新 更多