Self-assign a HypeSquad house badge (Bravery, Brilliance, or Balance) via Discord's API. Useful now that Discord has removed the in-app quiz from Settings, the main endpoint the quiz used to call is still live.
- This calls Discord's API directly instead of through the official client UI, which falls under Discord's ToS restrictions on client automation. Use at your own risk.
- Never share your Discord token with anyone or commit it to this repo. Treat it like a password, it grants full access to your account.
- This only affects your own account/cosmetic badge. No other users or servers are touched.
- You may even ask AI to make a similar script if you don't believe me, it should.
| ID | House |
|---|---|
| 1 | Bravery |
| 2 | Brilliance |
| 3 | Balance |
- Open Discord in your browser and log in.
- Open DevTools (
F12) → Network tab, refresh the page. - Click any request to
discord.com/api/v9/...and copy theauthorizationheader value from Request Headers. This is your account token. - Open the Console tab and paste the script below, replacing
YOUR_TOKENand setting your desiredhouse_id.
fetch('https://discord.com/api/v9/hypesquad/online', {
method: 'POST',
headers: {
'Authorization': 'YOUR_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({ house_id: 2 }) // 1=Bravery, 2=Brilliance, 3=Balance
}).then(r => r.status).then(console.log)A 204 response means it worked. Check your profile badges to confirm.
fetch('https://discord.com/api/v9/hypesquad/online', {
method: 'DELETE',
headers: {
'Authorization': 'YOUR_TOKEN'
}
}).then(r => r.status).then(console.log)- Only paste scripts into the DevTools console that you've read and understand. Discord's own console warning exists for a reason. You don't even have to trust me, but I published this repo so I can look cool on my github. You may even ask AI to make a script similar to this if you are extra paranoid.
- This repo is for educational/personal use. Not affiliated with Discord.