164
rated 0 times
[
168]
[
4]
/ answers: 1 / hits: 12442
/ 3 Years ago, sun, january 31, 2021, 12:00:00
I'm pretty new to Discord.js and Stackoverflow. So I don't know exactly how to do this.
I do know that this question has been asked many times, sadly any I've found haven't worked.
I'm trying to assign roles to members on their birthday. I want to do this with a crontab.
Now I have their user ID's but sadly when I request the member with this code.
let guild = client.guilds.cache.get('Guild ID');
let member = guild.members.cache.get('User ID');
console.log(member);
I just get an undefined
message. Now I know that the user ID is correct. I just don't know why I get the undefined
message.
More From » discord.js