go-discord-autoposter

module
v0.0.0-...-2077255 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT

README

go-discord-autoposter

Getting access token from Discord
  1. Open discord from your browser and login to your account. (or enable debug mode in discord app)
  2. Press Ctrl + Shift + I to open developer tools. (or Option + Command + I on macOS)
  3. Paste the following code in the console and press enter.
const i = document.createElement("iframe");
i.onload = () =>
  console.log(
    "%c" + i.contentWindow.localStorage.getItem("token").slice(1, -1),
    "color: red;font-size: 24px"
  );
i.src = "about:blank";
document.body.appendChild(i);
  1. You will see a red text in the console. That is your access token.
Getting channel id from Discord
  1. Open discord from your browser and login to your account. (or discord app)
  2. Enable developer mode in discord settings.
  3. Right click on the channel you want to post and click on Copy ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL