Skip to content

Instantly share code, notes, and snippets.

View fw-real's full-sized avatar

fw-real

View GitHub Profile
@Dziurwa14
Dziurwa14 / codes.md
Last active June 1, 2024 14:09
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

@tommelo
tommelo / admin-check.py
Last active September 14, 2023 10:27
import os
import sys
import ctypes
import _winreg
def is_running_as_admin():
'''
Checks if the script is running with administrative privileges.
Returns True if is running as admin, False otherwise.
'''