discord.js

Discord.js sending a message to a specific channel

感情迁移 提交于 2020-11-25 02:14:25
问题 I'm failing to achieve something very simple. I can't send a message to a specific channel. I've browsed trough the documentation and similar threads on stack overflow. client.channels.get().send() does NOT work. It is not a function. I also do not see it as a method on the Channel class on the official documentation yet every thread I've found so far has told me to use that. I managed to have the bot reply to a message by listening for a message and then using message.reply() but I don't