client.channels
на bot.channels
bot.on("message", async message => {
if(message.author.bot) return;
if(message.channel.type === "dm") return;
let prefix = botconfig.prefix;
let messageArray = message.content.split(" ");
let cmd = messageArray[0];
let args = messageArray.slice(1);
bot.channels.get(message.channel.id).send('My message')
.then(msg => {
})
.catch((e) => {
console.log(e);
});
});