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.8a1.tar.gz
(27.9 kB
view hashes)
Built Distribution
Close
Hashes for discordSplash-0.0.8a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c007942c3197f139ba7a33d37749a451923fc0c702bc9dd128c1dc015dcfdad |
|
MD5 | 79916046e236ebc8405638c8c9d54636 |
|
BLAKE2b-256 | 99c2b849fd0c3cb343cf2262ccb6f70a5f5a10b376a8ae88ac8dbe379f3f302c |