【发布时间】:2020-10-04 19:19:44
【问题描述】:
我正在尝试使用我的机器人删除我的不和谐服务器上的频道,这是代码:
if (message.content === 'tanbu')
message.guild.channels.forEach(channel => channel.delete())
.then(console.log)
.catch(console.error);
错误是:
TypeError: message.guild.channels.forEach is not a function
我该怎么办?
【问题讨论】:
标签: discord discord.js