Taking a server id, and resulting all channel id's in discord using python

2 weeks ago 11
ARTICLE AD BOX

The bot itself doesn't have access to the server, so it does not have access to the server channel ids. Therefore, Discord return 401 Unauthorized.

You have two options to solve this:

Option 1: Add the bot to the server

Option 2 (If you really don't want to add the bot): use your own Discord Authorization Token. You can find this by going into the browser version of Discord, opening the developer console, and going to the network tab. There, you can just click on any request (counts for example), go down to the "Request Headers" section, and copy and paste the "Authorization" header. This method is a bit more dangerous because you DO NOT WANT TO LEAK THIS!! If you leak this people will be able to access and do stuff to your account.

non_reai's user avatar

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.

Read Entire Article