【发布时间】:2021-03-21 04:05:35
【问题描述】:
如何在 discord.py 中使用表情符号按钮编辑嵌入? 我是这样弄的..但它不起作用..
@client.event
async def on_message(message):
if message.content.startswith("!menu"):
embed=discord.Embed(color=0x00FFFF, title=f'Menu', description= f'???? - test1 \n???? - test2 \n???? - test3 \n???? - test4 \n???? - test5 \n???? - test6', timestamp=message.created_at)
embed.set_footer(text=f'-', icon_url=message.author.avatar_url)
msg = await message.channel.send(embed=embed)
await msg.add_reaction('????')await msg.reaction_add('????')
await msg.add_reaction('????')
await msg.add_reaction('????')
await msg.add_reaction('????')
await msg.add_reaction('????')
if str(msg.add_reaction) == '????':
embed1=discord.Embed(color=0x00FFFF, title=f'edit1', description= f'test1')
await msg.edit(embed=embed1)
我想要一些编辑代码!!
【问题讨论】:
-
为此使用
discord.ext.menus,你可以用经典的方式做到这一点,但这很痛苦。
标签: python discord discord.py edit