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 hashes)
Built Distribution
Close
Hashes for discordSplash-0.0.9a10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0699c8bcd8325de45d5ea34eee2e4ee3b7db8258d7a55a6f7107bd8ba328e506 |
|
MD5 | b44b2476b47c167ffd771b89b78bb2c3 |
|
BLAKE2b-256 | 9e77ce70a0815535bc7a42601a9c3311f16064d6a734e20a8de34adca6e2b30c |