小编Con*_*161的帖子

How to find a User ID from a Username in Discord.js?

I have a json file (localJSON.json) with Discord usernames (i.e. JohnDoe#1234) and need to get the User IDs from these usernames in order to have a role added. Every place I have looked online has resulted with either an 'undefined' or 'null' value for rMember. Verified that the code to add a role works when given a User ID as a string, but can't find how to get a User ID from a username. How do I get a user's …

javascript discord.js

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

discord.js ×1

javascript ×1