答案 0 :(得分:2)
您需要从客户端收集用户。
const Discord = require("discord.js");
const client = new Discord.Client();
//This return the username of the specified user ID.
const user = client.users.cache.get("USERID");
if (!user) return console.log("Couldn't find the user");
console.log(user.username)