Skip to content

Instantly share code, notes, and snippets.

View polycord-token-invalidator-bot's full-sized avatar

Polycord / Skyfall polycord-token-invalidator-bot

View GitHub Profile

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)