客户端将消息发送到特定渠道

I keep getting Cannot read property 'send' of undefined

这是代码:

client.channel.cache.get('channelID').send('message');
评论
cvelit
cvelit

That's because client.channel is not a thing.

client.channels.cache.get('channelID').send('message');
点赞
评论