Skip to main content

A simple Discord API wrapper for Discord's api.

Project description

discordiapy

discordiapy is a basic python wrapper for discord's rest api (bot token only).
it lets you interact with discord as a bot without needing a gateway connection—just use http requests.


features

  • get bot, user, server, and channel info
  • list server channels and members
  • send, edit, and delete messages
  • add reactions to messages

installation

install from pypi:

pip install discordiapy

or, for development, clone the repo and install dependencies:

pip install -r requirements.txt

usage

from client import discordiapy

token = ""
client = discordiapy(token)

# get info about the bot user
print(client.get_me())

# send a message
channel_id = ""
client.send_message(channel_id, "hi from discordia")

requirements

  • python 3.7+
  • requests library

project structure

  • 📂 discordiapy
  • client.py – main api wrapper
  • __init__.py – version and imports
  • ❌ no folder
  • pyproject.toml – build system
  • setup.cfg – package metadata/configuration
  • setup.py - package metadata/configuration
  • readme.md – this file
  • license – license
  • 📂 dist
  • discordia-0.1.0.tar.gz - tar.gz file for installing
  • Discordia-0.1.0-py3-none-any.whl .whl file for installing

license

mit


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

DiscordiaPy-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

DiscordiaPy-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file DiscordiaPy-0.1.0.tar.gz.

File metadata

  • Download URL: DiscordiaPy-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for DiscordiaPy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 25d2f0e3065eb498ff19f9e89f6f8f153db8ad034f86edc7ef9aedb13c87afcd
MD5 e979bd982400f599b12fb26235dc52da
BLAKE2b-256 df5b05ed75d36df31e1738e400929a3417d4156dc85dede549c829344f002392

See more details on using hashes here.

Provenance

The following attestation bundles were made for DiscordiaPy-0.1.0.tar.gz:

Publisher: python-publish.yml on shvrs/DiscordiaPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file DiscordiaPy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: DiscordiaPy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for DiscordiaPy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a0ba9632ef57770ac11ede5a7ef7f38795bf4a3a84eca73abb6a60bd08ddb31
MD5 1c1ceb5b6c8fe0c749d19d11e185bd29
BLAKE2b-256 27d9a7aa2f7cd80afaab5666440798090a8d717f2181225a44c8f7e0c303ce56

See more details on using hashes here.

Provenance

The following attestation bundles were made for DiscordiaPy-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on shvrs/DiscordiaPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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