我有一个不和。js bot和我不知道该怎么做:/
我希望用户键入命令!仅在#命令频道中提供帮助。
P、 我知道如何获取频道ID,而且我有它。
那么,我应该在命令事件中做什么才能做到这一点呢?
谢谢
使用 Message.channel.id 所有物
Message.channel.id
请参阅 discord.js documentation 更多信息
client.on('message', msg => { if (msg.channel.id === 'ChannelID') { // Deal with command } });