【发布时间】:2018-08-26 23:10:30
【问题描述】:
我正在尝试做一个 roleReact 机器人。库存表情符号正在工作,我基于discord.js 的官方文档中的一些,但是当涉及到自定义表情符号反应时,我不断得到结果
客户端未定义
这是我目前的代码:
case "react":
// this works
message.react("????").then(reaction => console.log(typeof reaction));
//I keep getting a client undefiend error here
message.react( client.emojis.get("410431571083132933")).then(reaction => console.log(typeof reaction));
message.react("410431571083132933").then(reaction => console.log(typeof reaction));
break;
有人知道解决这个问题的方法吗?
【问题讨论】:
-
您需要提供更多代码。至少在定义
cilent的地方,或者在这种情况下,没有定义
标签: javascript emoji discord discord.js