discord.js channel.type code example
Example 1: discord js channel send
const user = <client>.users.cache.get('<id>');
user.send('<content>');
Example 2: discord js channel send
const channel = <client>.channels.cache.get('<id>');
channel.send('<content>');