discord.js setactivity types code example
Example 1: discord js channel send
const user = <client>.users.cache.get('<id>');
user.send('<content>');
Example 2: discord.js setactivity
client.user.setActivity("hello world");
//Note, you have to define cilent
Example 3: discord js channel send
const channel = <client>.channels.cache.get('<id>');
channel.send('<content>');