An API wrapper for Discord's slash commands. Written in Python.
Project description
discord-splash
An API wrapper for Discord's slash commands.
Docs:
Docs are hosted on ReadTheDocs.
NOTE:
you are required to make the slash commands via the Discord API. Currently this is not possible via this API wrapper.
Examples:
Simple bot that responds with "hi"
from discordSplash import Run
import discordSplash
@discordSplash.command(name='hello')
async def hello(data):
await data.respond(discordSplash.ReactionResponse("hi"))
Run('TOKEN')
Presence Example
from discordSplash import Run, Presence
import discordSplash
x = Presence(text='testing', presenceType=discordSplash.PresenceType.Game)
Run('TOKEN', x)
Installation
Use pip install discordSplash
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
discordSplash-0.0.9a10.tar.gz
(28.1 kB
view details)
Built Distribution
File details
Details for the file discordSplash-0.0.9a10.tar.gz
.
File metadata
- Download URL: discordSplash-0.0.9a10.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f570eb144d6353f6323824e08dba616966bd0063d3d63defaabc7c74ebe90b59 |
|
MD5 | c953f86830dff6054342938cf1958378 |
|
BLAKE2b-256 | 857ddc404dc458616542594589e096d8605789062790ffc58a94378c992bbff3 |
File details
Details for the file discordSplash-0.0.9a10-py3-none-any.whl
.
File metadata
- Download URL: discordSplash-0.0.9a10-py3-none-any.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0699c8bcd8325de45d5ea34eee2e4ee3b7db8258d7a55a6f7107bd8ba328e506 |
|
MD5 | b44b2476b47c167ffd771b89b78bb2c3 |
|
BLAKE2b-256 | 9e77ce70a0815535bc7a42601a9c3311f16064d6a734e20a8de34adca6e2b30c |