To make this code work you need to have a .env.discord file near an executable with the following content:
- AUTHORIZATION=... - you can have this token from any Discord XHR request in your browser
- GUILD_ID=... - id of your server (guild), also can be get probably from any XHR request
- CHANNEL_ID=... - same as two previous
If you not sure what XHR is - I mean that funny stuff when you open a Discord in a browser, press f12, go to the Networking tab and reload the page. If you click on any, you will see a details of it, request data, response data, and more.
- Install V as described here - https://github.com/vlang/v#installing-v---from-source-preferred-method
cd
to the root of this repo andv .
then./DiscordLinksCollector