获取特定消息的特定反应,获取未定义的返回值

时间:2020-05-20 08:04:45

标签: node.js discord.js

我会尝试从messages.fetch(“ id”)获得与reacts.cache.get()的特定反应,但返回的结果不确定。这是我的代码:

var messageGAL = await bot.guilds.cache.find(x => x.id == info.guildid).channels.cache.find(x => x.id == info.ChannelId).messages.fetch(info.MessageId)                                
                                console.log(messageGAL.reactions.cache.get("\uD83C\uDF89")) 

0 个答案:

没有答案