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.9a4.tar.gz
(27.9 kB
view hashes)
Built Distribution
Close
Hashes for discordSplash-0.0.9a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1fcccc30dcc6aadb6ad11f863915a1bc1e70744e84688584d972557bcd0854a |
|
MD5 | 6cb830b4e2b43391bc9b50e457946ff6 |
|
BLAKE2b-256 | 83e8a5ceb58547d921607ceee6ca89e2695010364845cdb01a69349dec15be54 |