Answer the question
In order to leave comments, you need to log in
What is the problem with returning Missing Access?
There is some code that is fully functional, there is one ill-fated request
u = await fetch("https://discordapp.com/api/v9/guilds/<guild-id>/members/"+u.id,{headers: {Authorization:"Bot <token>"}}).then(r => r.json());
Answer the question
In order to leave comments, you need to log in
Try to use channelid instead of guildid
(I don't practice much on discord with js, but maybe it can help)
u = await fetch("https://discordapp.com/api/v9/guilds/<channelid>/members/"+u.id,{headers: {Authorization:"Bot <token>"}}).then(r => r.json());
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question