【发布时间】: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