discord.py - 我如何将嵌入值与“" in discord bot
问题描述
解决方案
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 ;)
推荐阅读
- angular - 在动态组件创建期间无法注入自定义值
- django - 自定义角色和权限
- java - 由于外键为空值,无法从表中获取数据
- mule - 在 mule 中手动解析 RAML 文件的简单方法是什么?
- ios - 使用自定义框架启用位码导出时出错
- javascript - 在一个 JSON 文件中查找键值并将其替换为第二个 JSON 中的键值,其中第一个 JSON 中的值与第二个 JSON 中的键匹配
- c++ - 在结构之间复制特定值
- node.js - 收到错误 AWS Lambda:EROFS:只读文件系统,打开“/var/task/assets/docs.zip”
- c - 是否允许 C 编译器优化未使用的函数参数?
- javascript - 如何在多个 switch 案例中使用用 let 声明的变量名?