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+
requestslibrary
project structure
- 📂 discordiapy
client.py– main api wrapper__init__.py– version and imports- ❌ no folder
pyproject.toml– build systemsetup.cfg– package metadata/configurationsetup.py- package metadata/configurationreadme.md– this filelicense– license- 📂 dist
discordia-0.1.0.tar.gz- tar.gz file for installingDiscordia-0.1.0-py3-none-any.whl.whl file for installing
license
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25d2f0e3065eb498ff19f9e89f6f8f153db8ad034f86edc7ef9aedb13c87afcd
|
|
| MD5 |
e979bd982400f599b12fb26235dc52da
|
|
| BLAKE2b-256 |
df5b05ed75d36df31e1738e400929a3417d4156dc85dede549c829344f002392
|
Provenance
The following attestation bundles were made for DiscordiaPy-0.1.0.tar.gz:
Publisher:
python-publish.yml on shvrs/DiscordiaPy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
discordiapy-0.1.0.tar.gz -
Subject digest:
25d2f0e3065eb498ff19f9e89f6f8f153db8ad034f86edc7ef9aedb13c87afcd - Sigstore transparency entry: 283023276
- Sigstore integration time:
-
Permalink:
shvrs/DiscordiaPy@433b0e9e0e7753313ed4e8aaf612d3fc13ae946d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/shvrs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@433b0e9e0e7753313ed4e8aaf612d3fc13ae946d -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a0ba9632ef57770ac11ede5a7ef7f38795bf4a3a84eca73abb6a60bd08ddb31
|
|
| MD5 |
1c1ceb5b6c8fe0c749d19d11e185bd29
|
|
| BLAKE2b-256 |
27d9a7aa2f7cd80afaab5666440798090a8d717f2181225a44c8f7e0c303ce56
|
Provenance
The following attestation bundles were made for DiscordiaPy-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on shvrs/DiscordiaPy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
discordiapy-0.1.0-py3-none-any.whl -
Subject digest:
9a0ba9632ef57770ac11ede5a7ef7f38795bf4a3a84eca73abb6a60bd08ddb31 - Sigstore transparency entry: 283023647
- Sigstore integration time:
-
Permalink:
shvrs/DiscordiaPy@433b0e9e0e7753313ed4e8aaf612d3fc13ae946d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/shvrs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@433b0e9e0e7753313ed4e8aaf612d3fc13ae946d -
Trigger Event:
workflow_dispatch
-
Statement type: