Skip to main content

Discord API toolkit for user tokens only, with rate limit bypass.

Project description

saferates

Developed by: DriizzyyB

NOTE: Automation with user tokens is a ToS violation and will get your account banned.
This library is for educational use only.

Usage

from saferates import (
    SaferatesAPI,
    SaferatesUser,
    SaferatesChannels,
    SaferatesGuilds,
    SaferatesFriends,
    saferates_encode_emoji,
    saferates_upload_file,
)

token = "YOUR_USER_TOKEN"
api = SaferatesAPI(token)

# User
user = SaferatesUser(api)
print(user.profile())
print(user.settings())

# Channels
channels = SaferatesChannels(api)
channels.send_message("CHANNEL_ID", "Hello from saferates! " + saferates_encode_emoji("😄"))
channels.send_file("CHANNEL_ID", "example.png", "Here is an image.")

# Friends
friends = SaferatesFriends(api)
friends.add("USER_ID")

# Guilds
guilds = SaferatesGuilds(api)
print(guilds.list())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saferates-0.1.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

saferates-0.1.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file saferates-0.1.3.tar.gz.

File metadata

  • Download URL: saferates-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.1

File hashes

Hashes for saferates-0.1.3.tar.gz
Algorithm Hash digest
SHA256 402dc68795e536e30f1da9f52dc142f796ad90d1c73ffc920a00ac7add5b65e2
MD5 8782a865e54f59f84208afa5169bbaa2
BLAKE2b-256 392248656dbbb13952ca8b34864d8dbda795f4c2e0d4c19c3e8b36f7ea9e9867

See more details on using hashes here.

File details

Details for the file saferates-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: saferates-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.1

File hashes

Hashes for saferates-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 56eb63928d487046dc6296b435e9fada020e91d18c845a96a0c1808186bceb0d
MD5 65ea136a9958b8e27dee15dc3f663d42
BLAKE2b-256 76876855a863dc309a3c4a877842a543d9aa3b5645fdf591608509dc13444271

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page