A
A
Artem2021-06-15 12:27:08
JavaScript
Artem, 2021-06-15 12:27:08

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());

His answer is one - Missing Access with code 50001, I don't understand what the problem is, intents are enabled, all entered arguments cannot be wrong

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Endora Blackwell, 2021-06-15
@Allan-BlackWell

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 question

Ask a Question

731 491 924 answers to any question