【发布时间】:2021-03-25 17:04:33
【问题描述】:
我正在制作一个反应角色系统,其中机器人显示表情符号以及角色名称,但我似乎无法让机器人使用自定义表情符号进行显示。
我试过这个:
messagetext.append(f"{reaction.emoji} - {msgrole.content}")
msgedit = f"```{j.join(messagetext)}```"
我也试过这个:
emj = ((str(reaction.emoji).split(":"))
msgtext.append(f"<:{emj[1]}:{emj[2]} - msgrole.content")
但是,这是我在 discord 上收到的输出:
Please react for roles!
<:satisfied:788228224333119509> - notifs
基本上,反应来自wait_for() 声明,除了表情符号之外,一切都完美无缺。
如何让机器人正确显示表情符号?
【问题讨论】:
标签: python discord.py