Discord.py 获取消息链接

Dri*_*mov 1 python discord.py

我已经为我的discord.py 机器人制作了一个右板,现在我想添加一个“跳转到内容”行来重定向到消息,这是我当前的代码:

\n
@client.event\nasync def on_reaction_add(reaction, member):\n    schannel = client.get_channel(channel_id)\n    \n    if (reaction.emoji == '\xe2\xad\x90') and (reaction.count >= 3):\n        embed = discord.Embed(color = 15105570)\n        embed.set_author(name = reaction.message.author.name, icon_url = reaction.message.author.avatar_url)\n        embed.add_field(name = "Message Content", value = reaction.message.content)\n        \n        if len(reaction.message.attachments) > 0:\n            embed.set_image(url = reaction.message.attachments[0].url)\n        \n        embed.set_footer(text = f" \xe2\xad\x90 {reaction.count} | # {reaction.message.channel.name}")\n        embed.timestamp = datetime.datetime.utcnow()\n        await schannel.send(embed = embed)\n
Run Code Online (Sandbox Code Playgroud)\n

请帮我解决这个问题,预先感谢:)

\n

Łuk*_*ski 7

使用jump_url消息属性并将其作为超链接放入

\n

[text to click](url)

\n

注意:超链接不适用于嵌入标题页脚字段名称

\n