Discord机器人无法“有时"显示表情符号. [英] Discord bot can't show emote "sometimes"

查看:74
本文介绍了Discord机器人无法“有时"显示表情符号.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为法国的Gwent玩家,我建立了一个discord机器人(使用node.js和discord.js)来在您命名卡片时显示其信息.它使用一些自定义表情来显示其中的一部分.

As a french Gwent player, I built a discord bot (using node.js and discord.js) to show the infos of a card when you name it. It uses some custom emotes to show some part of it.

它工作了好几个星期,但是最近有些卡片在被叫时不显示表情.

It worked well for a few weeks, but recently some cards don't show the emotes when called.

我不知道有什么问题.如果您自己在频道上使用表情符号,则它们会起作用.有些卡片显示表情,而其他卡片则不使用,即使它们使用相同的表情.而且,每张卡总是表情全部或全部没有.

I have no clue about what could be wrong. The emotes work if you use it yourself on the channel. Some cards show the emotes, others don't, even if they use the same emotes. And it's always all emotes or none for each card.

我从数据库中检查了不同的卡片:有或没有表情,我无法获得任何特定的元素来解释为什么有些卡片可以有表情,而有些则不能.

I checked different cards from my database : with or without emotes, I can't get any specific element which can explain why some cards can have emotes and why some cannot.

这里有什么可以解释这种情况的知识吗?

Is there something to know here that can explain this situation ?

推荐答案

尽管这是一个较晚的答案,您可能已经找到了该问题的答案,但我还是会为其他人发布答案.

Although this a late answer and you may have found an answer to the question but I'm going to post an answer anyways for others.

首先必须在聊天中输入:

First in the chat you have to type:

\:custom_emote_here:

因此,在您的情况下,您希望它显示

so in your case, you want it to show

,它的名称是:number5:,您将输入:number5:.

and the name of it was :number5:, you would type :number5:.

您将获得以下内容:(当然,它会说:number5:并且开始和数字将不同)

You would get something like this: (of course, it would say :number5: and the start and the numbers would be different)

您可以将其复制并粘贴到您的代码中.例如:

You can copy and paste that into your code. For example:

message.channel.send(<:super_magical:366208548914331659>")

将显示以下内容:

希望这会有所帮助!

这篇关于Discord机器人无法“有时"显示表情符号.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆