我正在尝试获取命令发送到的通道的名称。我正在尝试检查命令发送到的通道名称是否等于我希望命令发送到的通道名称。
if (message.guilds.channels.name !== "suggestions") return message.channel.send("Please use the \"#suggestions\" text channel");
答案 0 :(得分:0)
message.channel.name
https://discord.js.org/#/docs/main/stable/class/Message?scrollTo=channel
所有信息都在discord.js网站上的消息类别下列出