I am using node.js for discord.
After I make a command, I want my bot to send a direct/private message to a specific person, not the author who makes the command (me).
Right now I have the person's <@000000000000000000> (I think this is called an ID), which is in String format.
For instance, this code client.sendMessage(message.author, "Hello!"); sends the author the message Hello. But I want one like client.sendMessage(message.user("<@000000000000000000>"), "Hello!");
Does a function like that exist?
For background information, I'm making a werewolf game bot where players are randomly assigned a role, and after I command w!play I want the players to receive their roles in the DM.