Discord API toolkit for user tokens only with implemented rate limiter and custom logging functionality.
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.5.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file saferates-0.1.5.tar.gz.
File metadata
- Download URL: saferates-0.1.5.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
615466b2de21d06bb8736800f0e8923fc77c8fadb6eb25ac9be2ca9129750749
|
|
| MD5 |
aeaae490579b821e5ddf0dc78d557f11
|
|
| BLAKE2b-256 |
96a62003a5781d22029d9cfc33237bf7bedc83d074bd9396e1878edc53722327
|
File details
Details for the file saferates-0.1.5-py3-none-any.whl.
File metadata
- Download URL: saferates-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5ecac63fd5e5b1aa624cd9eb6df3346fc3390158b86496f1e5f24e38eb05208
|
|
| MD5 |
93c0f67f23b26c92c2117f05089c2322
|
|
| BLAKE2b-256 |
0eb91bb2e4267df85fce58858f2c785a7c984571c8cde17b55aedef3f2b179cb
|