Skip to main content

Restcord

PyPI PyPI2 Discord

Restcord is a rest API wrapper for the Discord API, but this one does not include WebSockets, this is for people who dont want websockets but only make requests to the api.

Breaking Changes

The discord API is constantly changing and the wrapper API is as well.

Installing

To install the library, you can just run the following command:

pip install -U restcord

Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g. apt, yum, etc) before running the above command:

  • python-dev (e.g. python3.5-dev for Python 3.5)

Quick Example

import restcord
import asyncio

loop = asyncio.get_event_loop()
client = restcord.Restcord(token="Your token here")

async def test():
    guild = await client.get_guild("Some guild id of a guild that ur bot/user account is in")
    print(guild.__dict__)

loop.run_until_complete(test())

For user accounts:

import restcord
import asyncio

loop = asyncio.get_event_loop()
client = restcord.Restcord(token="Your token here", selfbot=True)

async def test():
    guild = await client.get_guild("Some guild id of a guild that ur bot/user account is in")
    print(guild.__dict__)

loop.run_until_complete(test())

Requirements

  • Python 3.4.2+ (There will be no effort to add support for lower versions)

  • aiohttp library

Usually pip will handle these for you.

Metadata

Release files for Restcord 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Restcord 1.0.8
File Size Uploaded Provenance Actions
Restcord-1.0.8.tar.gz 9.2 kB Without provenance Details for Restcord-1.0.8.tar.gz

Release files / Restcord-1.0.8.tar.gz

Download URL Restcord-1.0.8.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0b2649bef4c57c4eba5453e5a86cac764662b97f04e03c0185df381e536d752c
BLAKE2b-256 checksum
How to use checksums
192c594b677f1ccca89c6728852fff404d05ca00fce92485baec01d2624e26dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Restcord 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page