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.9a7.tar.gz
(27.9 kB
view hashes)
Built Distribution
Close
Hashes for discordSplash-0.0.9a7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c27a11cb0ce827a15de65c538f8ad6f95bac45095f4638a689e98f0a17673e27 |
|
MD5 | d3108d22b364647befa93a70a6c35651 |
|
BLAKE2b-256 | eeb698dcd41ace573869d950554baa249585f8289bec3d2f6d38377621582791 |