,discord.py"/>

首页 > 解决方案 > 我如何将嵌入值与“" in discord bot

问题描述

标签: discord.py

解决方案


You can do it in python just like :

arg3 = "```Some markdown```"
embed = discord.Embed(title = "Test")
embed.add_field(name = "Test field", value = arg3, inline = False)

await ctx.send(embed = embed)

You can also directly pass the string to the value parameter :

embed.add_field(name = "Test", value = "```Some markdown```", inline = False)

Next time try and see ;)


推荐阅读