Discord.py 获取消息 link
Discord.py fetch a message link
我已经为我的 discord.py 机器人做了一个右舷,现在我想添加一个重定向到消息的“跳转到内容”行,这是我当前的代码:
@client.event
async def on_reaction_add(reaction, member):
schannel = client.get_channel(channel_id)
if (reaction.emoji == '⭐') and (reaction.count >= 3):
embed = discord.Embed(color = 15105570)
embed.set_author(name = reaction.message.author.name, icon_url = reaction.message.author.avatar_url)
embed.add_field(name = "Message Content", value = reaction.message.content)
if len(reaction.message.attachments) > 0:
embed.set_image(url = reaction.message.attachments[0].url)
embed.set_footer(text = f" ⭐ {reaction.count} | # {reaction.message.channel.name}")
embed.timestamp = datetime.datetime.utcnow()
await schannel.send(embed = embed)
请帮助我,提前致谢:)
使用 jump_url
消息属性并将其作为超链接放入
[text to click](url)
注意:超链接不适用于嵌入 标题、页脚 或 字段名称
我已经为我的 discord.py 机器人做了一个右舷,现在我想添加一个重定向到消息的“跳转到内容”行,这是我当前的代码:
@client.event
async def on_reaction_add(reaction, member):
schannel = client.get_channel(channel_id)
if (reaction.emoji == '⭐') and (reaction.count >= 3):
embed = discord.Embed(color = 15105570)
embed.set_author(name = reaction.message.author.name, icon_url = reaction.message.author.avatar_url)
embed.add_field(name = "Message Content", value = reaction.message.content)
if len(reaction.message.attachments) > 0:
embed.set_image(url = reaction.message.attachments[0].url)
embed.set_footer(text = f" ⭐ {reaction.count} | # {reaction.message.channel.name}")
embed.timestamp = datetime.datetime.utcnow()
await schannel.send(embed = embed)
请帮助我,提前致谢:)
使用 jump_url
消息属性并将其作为超链接放入
[text to click](url)
注意:超链接不适用于嵌入 标题、页脚 或 字段名称