Skip to content

Instantly share code, notes, and snippets.

@lucymhdavies
Created January 2, 2021 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucymhdavies/6c15a546002cac796c9dc38e12d756c4 to your computer and use it in GitHub Desktop.
Save lucymhdavies/6c15a546002cac796c9dc38e12d756c4 to your computer and use it in GitHub Desktop.
Set Discord Status via API
#!/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