我最近创建了一个简单的命令来测试自定义表情符号和动画表情符号的格式
下面是命令的内容
@bot.command()
async def say(ctx, *, text):
await ctx.send("<:ono:521148278079881219> You said %s" % text)但是输出消息并没有发送自定义的表情符号,而是发送消息
:ono: You said hello(the text i messaged in chat)任何帮助都将不胜感激。
发布于 2019-01-08 22:23:48
可以使用Client.get_emoji获取Emoji对象,然后使用该对象构建字符串
@bot.command()
async def say(ctx, *, text):
ono = bot.get_emoji(521148278079881219)
await ctx.send(f"{ono} You said {text}")https://stackoverflow.com/questions/54085674
复制相似问题