1
1
1 22021-12-28 10:55:26
Python
1 2, 2021-12-28 10:55:26

[python] How to get guild object without using libraries?

I wrote the following code, but the guilds of the bot are not displayed

import requests

headers = {'Authorization': 'Bot {TOKEN}'}
response = requests.post('https://discord.com/api//guilds', headers=headers)

print(response.content)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-12-28
@SoreMix

Wrong endpoint selected
https://discord.com/api/users/@me/guilds
https://discord.com/developers/docs/resources/user...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question