Skip to content

Instantly share code, notes, and snippets.

View arHSM's full-sized avatar

Han Seung Min - 한승민 arHSM

View GitHub Profile
@Dziurwa14
Dziurwa14 / codes.md
Last active April 27, 2024 10:36
Discord error codes

Error Codes

All collected Discord error codes, categorized by type (first 2 digits).

Miscellaneous

Code Message
0 General error (such as a malformed request body, amongst other things)

Unknown API object

You'll need to get an access token first. The easiest way to do this is:

  1. Open Chrome
  2. Open devtools
  3. Go to the network inspector, and in the filter type "get_access_token"
  4. Navigate to https://open.spotify.com in that tab
  5. Click on the network request that shows up, then copy the entirety of the cookie header in the Request headers.

These access tokens expire, but the cookies appear to expire less frequently or not at all, so we will hold onto the cookies.

Whenever you need to get an access token, make a request to https://open.spotify.com/get_access_token?reason=transport&productType=web_player with the cookie header we extracted previously.

@lopspower
lopspower / README.md
Last active April 27, 2024 14:22
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store