

To do this you have to run this tool with a separate discord account. You can also set up the tool to download the complete history of a channel. (example: token = Bot mytokenhere) How to download old files?īy default, the tool only downloads new links posted while the tool is running. In the config.ini, add "Bot " before your token. You can invite to your server(s) by going to the OAuth2 tab in application settings, check bot, and copy+paste the url into your browser. If you wish to use a bot account (not a user account), go to and create an application, then create a bot in the Bot tab in application settings. You can acquire your token from the developer tools in your browser ( localStorage.token) or discord client ( Ctrl+Shift+I (Windows) or Cmd+Option+I (Mac), click Application, click Local Storage, click, and find "token" and paste the value). Remove the email and password lines under the auth section in the config file and instead put in token =. If you are using two-factor authentication (2FA) you have to login using your token. If you are using a normal user account without two-factor authentication (2FA), simply enter your email and password into the corresponding lines in config.ini, under the auth section. It should connect to discords api and wait for new messages.

Edit these values and run the tool for a second time. When you run the tool for the first time it creates a config.ini file with example values.

It handles various sources like Twitter differently to make sure to download the best quality available. This is a simple tool which downloads media posted in Discord channels of your choice to a local folder. For an actively maintained fork that implements features such as extensive JSON settings with channel-specific configurations, see get-got/discord-downloader-go Discord SelfBots are forbidden!
