Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/402.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在自定义表情符号中做出反应_Javascript_Discord_Discord.js - Fatal编程技术网

Javascript 如何在自定义表情符号中做出反应

Javascript 如何在自定义表情符号中做出反应,javascript,discord,discord.js,Javascript,Discord,Discord.js,我想让我的机器人做出个性化表情的反应,但我做不到 msg.react('<:info:753347236842438707>').then(r => { //custom emoji msg.react('First, you want to define the emoji: const info = client.emojis.cache.get('753347236842438707'); msg.react(“”)。然后(r=>{//自定义表情

我想让我的机器人做出个性化表情的反应,但我做不到

      msg.react('<:info:753347236842438707>').then(r => { //custom emoji
      msg.react('First, you want to define the emoji:

const info = client.emojis.cache.get('753347236842438707');
msg.react(“”)。然后(r=>{//自定义表情符号

msg.react('首先,您要定义表情符号:

const info=client.emojis.cache.get('753347236842438707');
接下来,对消息作出反应:

const info=client.emojis.cache.get('753347236842438707');
message.channel.send('content')。然后(msg=>{
等待消息。反应(信息);
等待消息。反应('