Created
January 2, 2021 14:01
-
-
Save lucymhdavies/6c15a546002cac796c9dc38e12d756c4 to your computer and use it in GitHub Desktop.
Set Discord Status via API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DISCORD_TOKEN="REDACTED" | |
for i in $(seq 69 -1 0); do | |
curl 'https://discord.com/api/v8/users/@me/settings' \ | |
-X 'PATCH' \ | |
-H "authorization: ${DISCORD_TOKEN}" \ | |
-H 'content-type: application/json' \ | |
--data-binary "{\"custom_status\":{\"text\":\"test ${i}\",\"emoji_name\":\"🟢\"}}" \ | |
--compressed | jq . | |
#sleep 0.1 | |
done | |
curl 'https://discord.com/api/v8/users/@me/settings' \ | |
-X 'PATCH' \ | |
-H "authorization: ${DISCORD_TOKEN}" \ | |
-H 'content-type: application/json' \ | |
--data-binary '{"custom_status":null}' \ | |
--compressed | jq . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment