Skip to content

Instantly share code, notes, and snippets.

@polycord-token-invalidator-bot
Last active January 29, 2022 21:39
Show Gist options
  • Save polycord-token-invalidator-bot/e3183e9ff5186dfa1cc05b67b69a0add to your computer and use it in GitHub Desktop.
Save polycord-token-invalidator-bot/e3183e9ff5186dfa1cc05b67b69a0add to your computer and use it in GitHub Desktop.

What this is

Polycord will invalidate Discord bot tokens automatically when they are posted in a server. We can't invalidate your token, but we can get GitHub to tell Discord to! It does this by:

  • Creating a new gist with all tokens in a message, and then deleting it straight after
  • GitHub will recognise that there are Discord tokens in the gist, and tell Discord to invalidate it
  • Discord invalidates it and tells the user

Pretty smart, huh? It was actually @Rapptz who thought of this (for R. Danny)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment