#๐Ÿ”’ Discord API only gives my name when fire a guild request

17 messages ยท Page 1 of 1 (latest)

cosmic topaz
#

Hey guys, so I am trying to make a HTTP request to discord in order to get all members of a guild. But I get only my name, has anyone an idea why?

slender sageBOT
#

@cosmic topaz

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

broken lotus
#

You will need intents to do that, namely guild and members iirc

#

Using http request using your own token is self bot

Use a bot to do that

cosmic topaz
#

Yeah, I have that and also atcivated all priviliged intents

broken lotus
#

I can't see what's wrong without code

#

!paste

slender sageBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

cosmic topaz
#
print(make_request(method="GET", url=f"{self.base_url}/guilds/{self.guild_id}/members", headers=self.header))
arctic root
#

and youll also have to pass the intents in your requests also

#

all of these stuff are simplified through api wrappers

cosmic topaz
#

!close

slender sageBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.