【发布时间】:2021-04-21 08:38:24
【问题描述】:
// remove reactions from sign up message
command(client, 'noreactions', message => {
client.channels.cache.get(channelBotTest).fetch(messageWSSignUp).reactions.removeAll().catch(error =>
console.error('Failed to clear reactions: ', error)
);
})
到目前为止,这是我的代码。 我希望能够在私人频道中运行一个命令,该命令将删除特定频道中特定消息的所有反应。
收到此错误: TypeError:无法读取未定义的属性“removeAll”
我不确定是否也需要定义频道?
请帮忙。
谢谢
【问题讨论】:
标签: discord.js