Discord.py message.reaction 嵌入
Discord.py message.reaction embed
我正在尝试让我的机器人对我发送的嵌入做出反应,但它不起作用。
代码是:
ruleta_image = discord.Embed(title="RULETA️", description="Hola", colour=discord.Colour.gold())
ruleta_image.set_image(url="https://iosmac.es/wp-content/uploads/2019/08/juegos-de-apuestas-portada.jpg")
first_run = True<
await si.send(embed=ruleta_image)
while True:
if first_run:
first_run = False
reactmoji = ["", "", "⚫", ""]
for react in reactmoji:
await message.add_reaction(react)
问题在于:
await message.add_reaction(react)
NameError: name 'message' is not defined
错误状态很清楚,没有定义message
,要定义它
message = await si.send(embed=ruleta_image)
我正在尝试让我的机器人对我发送的嵌入做出反应,但它不起作用。
代码是:
ruleta_image = discord.Embed(title="RULETA️", description="Hola", colour=discord.Colour.gold())
ruleta_image.set_image(url="https://iosmac.es/wp-content/uploads/2019/08/juegos-de-apuestas-portada.jpg")
first_run = True<
await si.send(embed=ruleta_image)
while True:
if first_run:
first_run = False
reactmoji = ["", "", "⚫", ""]
for react in reactmoji:
await message.add_reaction(react)
问题在于:
await message.add_reaction(react)
NameError: name 'message' is not defined
错误状态很清楚,没有定义message
,要定义它
message = await si.send(embed=ruleta_image)