A python Discord wrapper made in well, python.

Overview

discord.why

A python Discord wrapper made in well, python.

Made to be used by devs who want something a bit more, general.

Basic Examples

Sending a message

Send a message with the content 'testing discord.why', after the message is sent delete after 10 seconds.

from wrapper import *

Discord = Discord('TOKEN')

content = Discord.send_message(
    channel = 904513273058177055,
    message = 'testing discord.why',
    delete_after = 10
).json()

print(content)

Output: Sent: True; Status: 200

Getting user details

from wrapper import *

Discord = Discord('TOKEN')

content = Discord.get_user(
    user = 894348837009915935,
).json()

print(content)

Multiple token reactions

from wrapper import *

def send(w):
    content = w.create_reaction(
        channel = 904627884944138240,
        message = 904634461356965888,
        reaction = 'cool'
    ).json()
    
    print(content)

for token in open('tokens.txt', 'r').readlines():
    Wrapper = Discord(token.rstrip())
    send(Wrapper)

Output: Status: 200

Basics

Rate Limiting: REST

Rest Type API Location Limit
POST Message Per-Channel 5/5s
DELETE Message Per-Channel 5/1s
PUT/DELETE Reaction Per-Channel 300/300s
PATCH Member Per-Guild 10/10s
PATCH Member Nick Per-Guild 1/1s
PATCH Username Per-Account 2/3600s
All Requests Per-Account 50/1s

Rate Limiting: WS

Rest Type API Location Limit
Gateway Connect Per-Account 1/5s
Presence Update Per-Session 5/60s
All Sent Messages Per-Session 120/60s
You might also like...
Anime-Discord-Bot - Lightweight anime searching Discord bot supported by the AnilistPython library (anilist.co APIv2 wrapper)) Barbot is a discord bot made from discord.py and python, barbot is most to fun and roleplay for servers!
Barbot is a discord bot made from discord.py and python, barbot is most to fun and roleplay for servers!

BarBot Main source of barbot Overview Barbot is a discord bot made from discord.py and python, barbot is most to fun and roleplay for servers! Links i

Crystal Orb is a discord bot made from discord.py and python

Crystal orb Replacing barbot Overview Crystal Orb is a discord bot made from discord.py and python, Crystal Orb is for anti alt detection and other st

A simple but useful Discord Selfbot with essential features, made with discord.py-self.
A simple but useful Discord Selfbot with essential features, made with discord.py-self.

Discord Selfbot Xyno Discord Selfbot Xyno is a simple but useful selfbot for Discord. It has currently limited useful features but it will be updated

Some random bot for Discord which was created just for fun (Made with Discord.py library)
Some random bot for Discord which was created just for fun (Made with Discord.py library)

Ghosty Previously known as 'secondthunder-py-bot' This is repository of some random bot for Discord which was created just for fun and for some educat

discord bot made in discord.py

udeline discord bot made in discord.py, which's main features include: general use server moderation fun commands other cool commands dependencies dis

A small and fun Discord Bot that is written in Python and discord-interactions (with discord.py)
A small and fun Discord Bot that is written in Python and discord-interactions (with discord.py)

Articuno (discord-interactions) A small and fun Discord Bot that is written in Python and discord-interactions (with discord.py) Get started If you wa

Satoshi is a discord bot template in python using discord.py that allow you to track some live crypto prices with your own discord bot.

Satoshi ~ DiscordCryptoBot Satoshi is a simple python discord bot using discord.py that allow you to track your favorites cryptos prices with your own

It's a Discord bot to control your PC using your Discord Channel or using Reco: Discord PC Remote Controller App.
It's a Discord bot to control your PC using your Discord Channel or using Reco: Discord PC Remote Controller App.

Reco PC Server Reco PC Server is a cross platform PC Controller Discord Bot which is a modified and improved version of Chimera for Reco-Discord PC Re

Comments
  • Petition to rename from `discord.why` -> `discord.whywouldyouwritethis`

    Petition to rename from `discord.why` -> `discord.whywouldyouwritethis`

    I'm unsure as to what gave you the motivation for this, however, there are major issues. This project is clearly used for interacting with user accounts, not bot accounts.

    Here are a few issues with the code:

    • It's messy in general, way better ways to do things
    • You're using different API versions for different functions
      • v9
        • send_message(), delete_message(), create_reaction()
      • v7
        • check_nitro_status(), check_verified()
      • v6
        • check_token(), buy_nitro()
    • Invalid headers
      • You're not sending the correct headers for different endpoints, Discord sometimes expects a fingerprint & other data to be provided, this could lead to your account being terminated for API abuse

    If you're going to publish something like this, at least do your research on the Discord API instead of blatantly taking endpoints from other projects & throwing them into some tiny wrapper

    opened by 215B5D 5
Owner
HellSec
Student at LATTC, Currently teaching myself C and Go-Lang.
HellSec
Discord-Wrapper - Discord Websocket Wrapper in python

This does not currently work and is in development Discord Websocket Wrapper in

null 3 Oct 25, 2022
DeKrypt 24 Sep 21, 2022
A powerful, cool and well-made userbot for your Telegram profile with promising extension capabilities.

Telecharm userbot A powerful, fast and simple Telegram userbot written in Python 3 and based on Pyrogram 1.X. Currently in active WIP state, so feel f

Daniil Kovalenko 16 Dec 1, 2022
Discord Auto bumper made in python, just a simple auto bumper that I made.

Discord Auto bumper made in python, just a simple auto bumper that I made.

XPTGR 0 Dec 4, 2021
A Python wrapper for discord slash-commands, designed to extend discord.py.

dislash.py An extending library for discord.py that allows to build awesome slash-commands. ⭐

null 173 Dec 19, 2022
Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API

pycord A fork of discord.py. PyCord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. Key Features Mo

Pycord Development 2.3k Dec 31, 2022
An asyncio Python wrapper around the Discord API, forked off of Rapptz's Discord.py.

Novus A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. A full fork of Rapptz's Discord.py library, with

Voxel Fox 60 Jan 3, 2023
A Anything goes Discord bot written in python and uses the wrapper Discord.py

GerardTheWizard A Anything goes Discord bot written in python and uses the wrapper Discord.py What can he do? Allow users to level up through typing,

null 1 May 5, 2022
PyDiscord, a maintained fork of discord.py, is a python wrapper for the Discord API.

discord.py A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. The Future of discord.py Please read the gi

Omkaar 1 Jan 16, 2022
An API wrapper for discord; maintained and improved from discord.py

Fusion.py Documentation What is Fusion.py you might ask; Fusion.py is a Discord.py fork that has most of the good features from most of the big Discor

Senarc Studios 5 Apr 19, 2022