【发布时间】:2020-12-10 06:50:03
【问题描述】:
我一直在尝试检测 Discord 客户端本身是否存在用户...我使用了这个:
var user_id;
//on message and after assigning user_id
if(client.users.cache.get(user_id) !== undefined) {
//checks if user does exist on the client and does action (it always thinks it's undefined for some reason)
}
你能帮帮我吗?感谢您的所有帮助...
谢谢你, Rako 游戏
【问题讨论】:
-
你试过这个吗:
client.fetch(user_id)?
标签: javascript node.js discord.js detect