Discord Bot-以UTF8编码时未知的表情符号

问题描述 投票:0回答:1

当我使用UTF8编码文件时,我将无法再使用表情符号。

    if (_local.temp.pycx !== undefined) {
      _local.temp.pycx.reactions.find(x.emoji === "ðŸ").remove(user);
    };

      if (_local.lobby.players.length === 3) {
        _local.temp.pycx = await channel.send("React to this message to start the game. [Everyone must vote to start]");
        _local.temp.pycx.react("ðŸ");

        addReactable(_local.temp.pycx, actions.startGame, "ðŸ");

      };

如果文件位于ANSI中,则此代码的作用就像一个超级按钮。但是我需要UTF8 ...

我试图放🚩,但不起作用... Unknown Emoji

如何使它与UTF8编码一起使用?

utf-8 discord.js emoji ansi
1个回答
0
投票

[好吧,我不好,我没看到有更多奇怪的表情符号波纹管。与unicode表情符号配合使用时效果很好。

© www.soinside.com 2019 - 2024. All rights reserved.