我有这样的数据库中的表情列表
id | emoticon | convert_text
1 | :) | e_happy
2 | :( | e_sad
等。
如何检查表情符号列表中是否包含任何字符?
如果找到了,则将表情符号更改为文本。
示例:
before
S = Smile at everyone who doesn't smile at your :)
after
S= Smile at everyone who doesn't smile at your e_happy
*已编辑
首先,我试着像这样拆分每个单词
static voi
对于上下文,我试图创建一个从字符串代码点到表情符号的映射,并需要知道系统是否支持该表情符号:
("1F9AE") -> ""
("1FAE0") -> "" (iOS 15.4+) / nil (if below 15.4, since it would show as "")
("1F415-200D-1F9BA") -> ""
("1F415-1F9BA") -> nil (since it would normally be "
我在我的机器人支持服务器上有一个表情符号,我想把它用在我的机器人上。它不起作用。它不是显示表情符号,而是显示:greenTick:文本。
我使用的是<a:greenTick:id> (id本身就是id )。
即使对我来说,试图在服务器上使用它,文本也会更改为:greenTick:。
表情符号不是动画
示例:
@client.command()
async def example_cmd(ctx):
await ctx.send("<a:greenTick:1234567890> | Don't mind the id of the emoji,