【发布时间】:2020-11-21 12:17:55
【问题描述】:
嗯,我已经尝试过了,但我无法让他对媒体消息做出反应。它只有在没有文字的情况下才会做出反应......然后它变得很困难......有人可以帮助我吗?代码是:
if (message.content === '') { //In this part I am in doubt of how to put just react on media ...
try {
await message.react('✔️');
await message.react('✖️');
} catch (error) {
console.error('Does not recognize the emoji that another user has placed
(ignore)');//Ignore
}
}});
谢谢@Jakye!
【问题讨论】:
标签: javascript node.js json discord discord.js